~statik/v8/couchdb

« back to all changes in this revision

Viewing changes to src/objects-inl.h

  • Committer: mads.s.ager at gmail
  • Date: 2008-09-01 07:55:01 UTC
  • Revision ID: svn-v3-trunk0:ce2b1a6d-e550-0410-aec6-3dcde31c8c00:trunk:60
Included mjsunit JavaScript test suite and C++ unit tests.

Changed the shell sample to not print the result of executing a script provided on the command line.

Fixed issue when building samples on Windows using a shared V8 library.  Added visibility option on Linux build which makes the generated library 18% smaller.

Changed build system to accept multiple build modes in one build and generate separate objects, libraries and executables for each mode.

Removed deferred negation optimization (a * -b => -(a * b)) since this visibly changes operand conversion order.

Improved parsing performance by introducing stack guard in preparsing.  Without a stack guard preparsing always bails out with stack overflow.

Changed shell sample to take flags directly from the command-line. Added API call that implements this.

Added load, quit and version functions to the shell sample so it's easier to run benchmarks and tests.

Fixed issue with building samples and cctests on 64-bit machines.

Fixed bug in the runtime system where the prototype chain was not always searched for a setter when setting a property that does not exist locally.

Show diffs side-by-side

added added

removed removed

Lines of Context:
979
979
}
980
980
 
981
981
 
 
982
bool DescriptorArray::IsEmpty() {
 
983
  ASSERT(this == Heap::empty_descriptor_array() ||
 
984
         this->length() > 2);
 
985
  return this == Heap::empty_descriptor_array();
 
986
}
 
987
 
 
988
 
982
989
void DescriptorArray::fast_swap(FixedArray* array, int first, int second) {
983
990
  Object* tmp = array->get(first);
984
991
  fast_set(array, first, array->get(second));