2008-09-09 20:08:45 +00:00
|
|
|
// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
2008-07-03 15:10:15 +00:00
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
// modification, are permitted provided that the following conditions are
|
|
|
|
// met:
|
|
|
|
//
|
|
|
|
// * Redistributions of source code must retain the above copyright
|
|
|
|
// notice, this list of conditions and the following disclaimer.
|
|
|
|
// * Redistributions in binary form must reproduce the above
|
|
|
|
// copyright notice, this list of conditions and the following
|
|
|
|
// disclaimer in the documentation and/or other materials provided
|
|
|
|
// with the distribution.
|
|
|
|
// * Neither the name of Google Inc. nor the names of its
|
|
|
|
// contributors may be used to endorse or promote products derived
|
|
|
|
// from this software without specific prior written permission.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
#ifndef V8_STUB_CACHE_H_
|
|
|
|
#define V8_STUB_CACHE_H_
|
|
|
|
|
|
|
|
#include "macro-assembler.h"
|
|
|
|
|
2009-05-25 10:05:56 +00:00
|
|
|
namespace v8 {
|
|
|
|
namespace internal {
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
// The stub cache is used for megamorphic calls and property accesses.
|
|
|
|
// It maps (map, name, type)->Code*
|
|
|
|
|
|
|
|
// The design of the table uses the inline cache stubs used for
|
|
|
|
// mono-morphic calls. The beauty of this, we do not have to
|
|
|
|
// invalidate the cache whenever a prototype map is changed. The stub
|
|
|
|
// validates the map chain as in the mono-morphic case.
|
|
|
|
|
|
|
|
class SCTableReference;
|
|
|
|
|
|
|
|
class StubCache : public AllStatic {
|
|
|
|
public:
|
|
|
|
struct Entry {
|
|
|
|
String* key;
|
|
|
|
Code* value;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static void Initialize(bool create_heap_objects);
|
|
|
|
|
|
|
|
// Computes the right stub matching. Inserts the result in the
|
|
|
|
// cache before returning. This might compile a stub if needed.
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeLoadNonexistent(
|
|
|
|
String* name,
|
|
|
|
JSObject* receiver);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeLoadField(String* name,
|
2010-08-31 08:05:42 +00:00
|
|
|
JSObject* receiver,
|
|
|
|
JSObject* holder,
|
|
|
|
int field_index);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeLoadCallback(
|
2010-08-31 08:05:42 +00:00
|
|
|
String* name,
|
|
|
|
JSObject* receiver,
|
|
|
|
JSObject* holder,
|
|
|
|
AccessorInfo* callback);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeLoadConstant(String* name,
|
2010-08-31 08:05:42 +00:00
|
|
|
JSObject* receiver,
|
|
|
|
JSObject* holder,
|
|
|
|
Object* value);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-12-07 11:01:02 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeLoadInterceptor(String* name,
|
|
|
|
JSObject* receiver,
|
|
|
|
JSObject* holder);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeLoadNormal();
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeLoadGlobal(
|
2010-08-31 08:05:42 +00:00
|
|
|
String* name,
|
2010-10-25 15:22:03 +00:00
|
|
|
JSObject* receiver,
|
|
|
|
GlobalObject* holder,
|
|
|
|
JSGlobalPropertyCell* cell,
|
|
|
|
bool is_dont_delete);
|
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
// ---
|
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadField(String* name,
|
|
|
|
JSObject* receiver,
|
|
|
|
JSObject* holder,
|
|
|
|
int field_index);
|
|
|
|
|
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadCallback(
|
|
|
|
String* name,
|
|
|
|
JSObject* receiver,
|
|
|
|
JSObject* holder,
|
|
|
|
AccessorInfo* callback);
|
|
|
|
|
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadConstant(
|
|
|
|
String* name,
|
|
|
|
JSObject* receiver,
|
|
|
|
JSObject* holder,
|
|
|
|
Object* value);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadInterceptor(
|
|
|
|
String* name,
|
|
|
|
JSObject* receiver,
|
|
|
|
JSObject* holder);
|
2010-06-30 12:27:49 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadArrayLength(
|
|
|
|
String* name,
|
|
|
|
JSArray* receiver);
|
2009-06-30 10:05:36 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadStringLength(
|
|
|
|
String* name,
|
|
|
|
String* receiver);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadFunctionPrototype(
|
|
|
|
String* name,
|
|
|
|
JSFunction* receiver);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
// ---
|
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeStoreField(String* name,
|
2010-08-31 08:05:42 +00:00
|
|
|
JSObject* receiver,
|
|
|
|
int field_index,
|
|
|
|
Map* transition = NULL);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeStoreNormal();
|
|
|
|
|
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeStoreGlobal(
|
|
|
|
String* name,
|
|
|
|
GlobalObject* receiver,
|
|
|
|
JSGlobalPropertyCell* cell);
|
|
|
|
|
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeStoreCallback(
|
|
|
|
String* name,
|
|
|
|
JSObject* receiver,
|
|
|
|
AccessorInfo* callback);
|
|
|
|
|
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeStoreInterceptor(
|
|
|
|
String* name,
|
|
|
|
JSObject* receiver);
|
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
// ---
|
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeKeyedStoreField(
|
|
|
|
String* name,
|
|
|
|
JSObject* receiver,
|
|
|
|
int field_index,
|
|
|
|
Map* transition = NULL);
|
|
|
|
|
|
|
|
// ---
|
|
|
|
|
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallField(int argc,
|
|
|
|
InLoopFlag in_loop,
|
|
|
|
Code::Kind,
|
|
|
|
String* name,
|
|
|
|
Object* object,
|
|
|
|
JSObject* holder,
|
|
|
|
int index);
|
|
|
|
|
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallConstant(int argc,
|
|
|
|
InLoopFlag in_loop,
|
|
|
|
Code::Kind,
|
|
|
|
String* name,
|
|
|
|
Object* object,
|
|
|
|
JSObject* holder,
|
|
|
|
JSFunction* function);
|
2010-08-31 08:05:42 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallNormal(int argc,
|
|
|
|
InLoopFlag in_loop,
|
2010-08-31 08:05:42 +00:00
|
|
|
Code::Kind,
|
|
|
|
String* name,
|
2010-10-25 15:22:03 +00:00
|
|
|
JSObject* receiver);
|
2010-08-31 08:05:42 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallInterceptor(int argc,
|
|
|
|
Code::Kind,
|
|
|
|
String* name,
|
|
|
|
Object* object,
|
|
|
|
JSObject* holder);
|
2009-06-30 10:05:36 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallGlobal(
|
|
|
|
int argc,
|
|
|
|
InLoopFlag in_loop,
|
|
|
|
Code::Kind,
|
|
|
|
String* name,
|
|
|
|
JSObject* receiver,
|
|
|
|
GlobalObject* holder,
|
|
|
|
JSGlobalPropertyCell* cell,
|
|
|
|
JSFunction* function);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
// ---
|
2010-06-07 08:27:32 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallInitialize(int argc,
|
|
|
|
InLoopFlag in_loop,
|
|
|
|
Code::Kind kind);
|
2010-06-07 08:27:32 +00:00
|
|
|
|
2010-11-11 10:33:51 +00:00
|
|
|
static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop);
|
|
|
|
|
|
|
|
static Handle<Code> ComputeKeyedCallInitialize(int argc, InLoopFlag in_loop);
|
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallPreMonomorphic(
|
|
|
|
int argc,
|
|
|
|
InLoopFlag in_loop,
|
|
|
|
Code::Kind kind);
|
2010-06-07 08:27:32 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallNormal(int argc,
|
2010-08-31 08:05:42 +00:00
|
|
|
InLoopFlag in_loop,
|
|
|
|
Code::Kind kind);
|
2010-06-07 08:27:32 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallMegamorphic(int argc,
|
|
|
|
InLoopFlag in_loop,
|
|
|
|
Code::Kind kind);
|
|
|
|
|
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallMiss(int argc,
|
|
|
|
Code::Kind kind);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
// Finds the Code object stored in the Heap::non_monomorphic_cache().
|
2010-08-31 08:05:42 +00:00
|
|
|
MUST_USE_RESULT static Code* FindCallInitialize(int argc,
|
|
|
|
InLoopFlag in_loop,
|
|
|
|
Code::Kind kind);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2009-04-20 16:36:13 +00:00
|
|
|
#ifdef ENABLE_DEBUGGER_SUPPORT
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallDebugBreak(int argc,
|
|
|
|
Code::Kind kind);
|
2010-06-07 08:27:32 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT static MaybeObject* ComputeCallDebugPrepareStepIn(
|
|
|
|
int argc,
|
|
|
|
Code::Kind kind);
|
2009-04-20 16:36:13 +00:00
|
|
|
#endif
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
// Update cache for entry hash(name, map).
|
|
|
|
static Code* Set(String* name, Map* map, Code* code);
|
|
|
|
|
|
|
|
// Clear the lookup table (@ mark compact collection).
|
|
|
|
static void Clear();
|
|
|
|
|
|
|
|
// Generate code for probing the stub cache table.
|
2010-11-01 08:55:40 +00:00
|
|
|
// Arguments extra and extra2 may be used to pass additional scratch
|
|
|
|
// registers. Set to no_reg if not needed.
|
2008-07-03 15:10:15 +00:00
|
|
|
static void GenerateProbe(MacroAssembler* masm,
|
|
|
|
Code::Flags flags,
|
|
|
|
Register receiver,
|
|
|
|
Register name,
|
2009-07-03 06:34:59 +00:00
|
|
|
Register scratch,
|
2010-11-01 08:55:40 +00:00
|
|
|
Register extra,
|
|
|
|
Register extra2 = no_reg);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
enum Table {
|
|
|
|
kPrimary,
|
|
|
|
kSecondary
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
friend class SCTableReference;
|
|
|
|
static const int kPrimaryTableSize = 2048;
|
|
|
|
static const int kSecondaryTableSize = 512;
|
|
|
|
static Entry primary_[];
|
|
|
|
static Entry secondary_[];
|
|
|
|
|
|
|
|
// Computes the hashed offsets for primary and secondary caches.
|
|
|
|
static int PrimaryOffset(String* name, Code::Flags flags, Map* map) {
|
2008-10-06 09:35:52 +00:00
|
|
|
// This works well because the heap object tag size and the hash
|
|
|
|
// shift are equal. Shifting down the length field to get the
|
|
|
|
// hash code would effectively throw away two bits of the hash
|
|
|
|
// code.
|
2008-10-06 09:43:24 +00:00
|
|
|
ASSERT(kHeapObjectTagSize == String::kHashShift);
|
2009-11-24 14:10:06 +00:00
|
|
|
// Compute the hash of the name (use entire hash field).
|
2008-10-06 09:35:52 +00:00
|
|
|
ASSERT(name->HasHashCode());
|
2009-11-24 14:10:06 +00:00
|
|
|
uint32_t field = name->hash_field();
|
2009-05-06 08:42:36 +00:00
|
|
|
// Using only the low bits in 64-bit mode is unlikely to increase the
|
|
|
|
// risk of collision even if the heap is spread over an area larger than
|
|
|
|
// 4Gb (and not at all if it isn't).
|
|
|
|
uint32_t map_low32bits =
|
|
|
|
static_cast<uint32_t>(reinterpret_cast<uintptr_t>(map));
|
2009-05-25 18:29:02 +00:00
|
|
|
// We always set the in_loop bit to zero when generating the lookup code
|
|
|
|
// so do it here too so the hash codes match.
|
|
|
|
uint32_t iflags =
|
|
|
|
(static_cast<uint32_t>(flags) & ~Code::kFlagsNotUsedInLookup);
|
2008-07-03 15:10:15 +00:00
|
|
|
// Base the offset on a simple combination of name, flags, and map.
|
2009-05-25 18:29:02 +00:00
|
|
|
uint32_t key = (map_low32bits + field) ^ iflags;
|
2008-07-03 15:10:15 +00:00
|
|
|
return key & ((kPrimaryTableSize - 1) << kHeapObjectTagSize);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int SecondaryOffset(String* name, Code::Flags flags, int seed) {
|
|
|
|
// Use the seed from the primary cache in the secondary cache.
|
2009-05-06 08:42:36 +00:00
|
|
|
uint32_t string_low32bits =
|
|
|
|
static_cast<uint32_t>(reinterpret_cast<uintptr_t>(name));
|
2009-05-25 18:29:02 +00:00
|
|
|
// We always set the in_loop bit to zero when generating the lookup code
|
|
|
|
// so do it here too so the hash codes match.
|
|
|
|
uint32_t iflags =
|
|
|
|
(static_cast<uint32_t>(flags) & ~Code::kFlagsICInLoopMask);
|
|
|
|
uint32_t key = seed - string_low32bits + iflags;
|
2008-07-03 15:10:15 +00:00
|
|
|
return key & ((kSecondaryTableSize - 1) << kHeapObjectTagSize);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Compute the entry for a given offset in exactly the same way as
|
2009-07-21 13:30:46 +00:00
|
|
|
// we do in generated code. We generate an hash code that already
|
|
|
|
// ends in String::kHashShift 0s. Then we shift it so it is a multiple
|
|
|
|
// of sizeof(Entry). This makes it easier to avoid making mistakes
|
|
|
|
// in the hashed offset computations.
|
2008-07-03 15:10:15 +00:00
|
|
|
static Entry* entry(Entry* table, int offset) {
|
2009-07-21 13:30:46 +00:00
|
|
|
const int shift_amount = kPointerSizeLog2 + 1 - String::kHashShift;
|
2008-07-03 15:10:15 +00:00
|
|
|
return reinterpret_cast<Entry*>(
|
2009-07-21 13:30:46 +00:00
|
|
|
reinterpret_cast<Address>(table) + (offset << shift_amount));
|
2008-07-03 15:10:15 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class SCTableReference {
|
|
|
|
public:
|
|
|
|
static SCTableReference keyReference(StubCache::Table table) {
|
|
|
|
return SCTableReference(
|
|
|
|
reinterpret_cast<Address>(&first_entry(table)->key));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static SCTableReference valueReference(StubCache::Table table) {
|
|
|
|
return SCTableReference(
|
|
|
|
reinterpret_cast<Address>(&first_entry(table)->value));
|
|
|
|
}
|
|
|
|
|
|
|
|
Address address() const { return address_; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
explicit SCTableReference(Address address) : address_(address) {}
|
|
|
|
|
|
|
|
static StubCache::Entry* first_entry(StubCache::Table table) {
|
|
|
|
switch (table) {
|
|
|
|
case StubCache::kPrimary: return StubCache::primary_;
|
|
|
|
case StubCache::kSecondary: return StubCache::secondary_;
|
|
|
|
}
|
|
|
|
UNREACHABLE();
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
Address address_;
|
|
|
|
};
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
// Support functions for IC stubs for callbacks.
|
2010-10-25 15:22:03 +00:00
|
|
|
MaybeObject* LoadCallbackProperty(Arguments args);
|
|
|
|
MaybeObject* StoreCallbackProperty(Arguments args);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
// Support functions for IC stubs for interceptors.
|
2010-10-25 15:22:03 +00:00
|
|
|
MaybeObject* LoadPropertyWithInterceptorOnly(Arguments args);
|
|
|
|
MaybeObject* LoadPropertyWithInterceptorForLoad(Arguments args);
|
|
|
|
MaybeObject* LoadPropertyWithInterceptorForCall(Arguments args);
|
|
|
|
MaybeObject* StoreInterceptorProperty(Arguments args);
|
|
|
|
MaybeObject* CallInterceptorProperty(Arguments args);
|
|
|
|
MaybeObject* KeyedLoadPropertyWithInterceptor(Arguments args);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
// The stub compiler compiles stubs for the stub cache.
|
|
|
|
class StubCompiler BASE_EMBEDDED {
|
|
|
|
public:
|
2010-12-07 11:01:02 +00:00
|
|
|
enum CheckType {
|
|
|
|
RECEIVER_MAP_CHECK,
|
|
|
|
STRING_CHECK,
|
|
|
|
NUMBER_CHECK,
|
|
|
|
BOOLEAN_CHECK
|
|
|
|
};
|
|
|
|
|
2009-07-10 09:40:47 +00:00
|
|
|
StubCompiler() : scope_(), masm_(NULL, 256), failure_(NULL) { }
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileCallInitialize(Code::Flags flags);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileCallPreMonomorphic(Code::Flags flags);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileCallNormal(Code::Flags flags);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileCallMegamorphic(Code::Flags flags);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileCallMiss(Code::Flags flags);
|
2009-04-20 16:36:13 +00:00
|
|
|
#ifdef ENABLE_DEBUGGER_SUPPORT
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileCallDebugBreak(Code::Flags flags);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileCallDebugPrepareStepIn(Code::Flags flags);
|
2009-04-20 16:36:13 +00:00
|
|
|
#endif
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
// Static functions for generating parts of stubs.
|
|
|
|
static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm,
|
|
|
|
int index,
|
|
|
|
Register prototype);
|
2010-02-09 14:19:23 +00:00
|
|
|
|
2010-06-04 16:20:34 +00:00
|
|
|
// Generates prototype loading code that uses the objects from the
|
2010-09-17 09:56:47 +00:00
|
|
|
// context we were in when this function was called. If the context
|
|
|
|
// has changed, a jump to miss is performed. This ties the generated
|
|
|
|
// code to a particular context and so must not be used in cases
|
|
|
|
// where the generated code is not allowed to have references to
|
|
|
|
// objects from a context.
|
2010-06-04 16:20:34 +00:00
|
|
|
static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm,
|
|
|
|
int index,
|
2010-09-17 09:56:47 +00:00
|
|
|
Register prototype,
|
|
|
|
Label* miss);
|
2010-06-04 16:20:34 +00:00
|
|
|
|
2008-10-16 05:58:09 +00:00
|
|
|
static void GenerateFastPropertyLoad(MacroAssembler* masm,
|
|
|
|
Register dst, Register src,
|
|
|
|
JSObject* holder, int index);
|
2009-07-10 09:40:47 +00:00
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
static void GenerateLoadArrayLength(MacroAssembler* masm,
|
|
|
|
Register receiver,
|
|
|
|
Register scratch,
|
|
|
|
Label* miss_label);
|
2010-02-09 14:19:23 +00:00
|
|
|
|
2008-10-27 12:39:34 +00:00
|
|
|
static void GenerateLoadStringLength(MacroAssembler* masm,
|
2010-02-09 14:19:23 +00:00
|
|
|
Register receiver,
|
|
|
|
Register scratch1,
|
|
|
|
Register scratch2,
|
|
|
|
Label* miss_label);
|
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
static void GenerateLoadFunctionPrototype(MacroAssembler* masm,
|
|
|
|
Register receiver,
|
|
|
|
Register scratch1,
|
|
|
|
Register scratch2,
|
|
|
|
Label* miss_label);
|
2010-02-09 14:19:23 +00:00
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
static void GenerateStoreField(MacroAssembler* masm,
|
|
|
|
JSObject* object,
|
|
|
|
int index,
|
|
|
|
Map* transition,
|
|
|
|
Register receiver_reg,
|
|
|
|
Register name_reg,
|
|
|
|
Register scratch,
|
|
|
|
Label* miss_label);
|
2010-02-09 14:19:23 +00:00
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
static void GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind);
|
|
|
|
|
2010-07-02 14:15:04 +00:00
|
|
|
// Generates code that verifies that the property holder has not changed
|
|
|
|
// (checking maps of objects in the prototype chain for fast and global
|
|
|
|
// objects or doing negative lookup for slow objects, ensures that the
|
|
|
|
// property cells for global objects are still empty) and checks that the map
|
|
|
|
// of the holder has not changed. If necessary the function also generates
|
|
|
|
// code for security check in case of global object holders. Helps to make
|
|
|
|
// sure that the current IC is still valid.
|
|
|
|
//
|
|
|
|
// The scratch and holder registers are always clobbered, but the object
|
|
|
|
// register is only clobbered if it the same as the holder register. The
|
|
|
|
// function returns a register containing the holder - either object_reg or
|
|
|
|
// holder_reg.
|
|
|
|
// The function can optionally (when save_at_depth !=
|
|
|
|
// kInvalidProtoDepth) save the object at the given depth by moving
|
|
|
|
// it to [esp + kPointerSize].
|
2010-02-09 16:14:14 +00:00
|
|
|
|
|
|
|
Register CheckPrototypes(JSObject* object,
|
|
|
|
Register object_reg,
|
|
|
|
JSObject* holder,
|
|
|
|
Register holder_reg,
|
2010-07-13 10:02:11 +00:00
|
|
|
Register scratch1,
|
|
|
|
Register scratch2,
|
2010-02-09 16:14:14 +00:00
|
|
|
String* name,
|
2010-07-13 10:02:11 +00:00
|
|
|
Label* miss) {
|
|
|
|
return CheckPrototypes(object, object_reg, holder, holder_reg, scratch1,
|
|
|
|
scratch2, name, kInvalidProtoDepth, miss);
|
2010-02-09 16:14:14 +00:00
|
|
|
}
|
|
|
|
|
2009-07-10 09:40:47 +00:00
|
|
|
Register CheckPrototypes(JSObject* object,
|
|
|
|
Register object_reg,
|
|
|
|
JSObject* holder,
|
|
|
|
Register holder_reg,
|
2010-07-13 10:02:11 +00:00
|
|
|
Register scratch1,
|
|
|
|
Register scratch2,
|
2009-07-10 09:40:47 +00:00
|
|
|
String* name,
|
2010-02-09 16:14:14 +00:00
|
|
|
int save_at_depth,
|
2010-07-13 10:02:11 +00:00
|
|
|
Label* miss);
|
2009-07-10 09:40:47 +00:00
|
|
|
|
2009-07-29 12:34:21 +00:00
|
|
|
protected:
|
2010-10-25 15:22:03 +00:00
|
|
|
MaybeObject* GetCodeWithFlags(Code::Flags flags, const char* name);
|
|
|
|
MaybeObject* GetCodeWithFlags(Code::Flags flags, String* name);
|
2009-07-29 12:34:21 +00:00
|
|
|
|
|
|
|
MacroAssembler* masm() { return &masm_; }
|
|
|
|
void set_failure(Failure* failure) { failure_ = failure; }
|
|
|
|
|
2009-07-10 09:40:47 +00:00
|
|
|
void GenerateLoadField(JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
Register receiver,
|
|
|
|
Register scratch1,
|
|
|
|
Register scratch2,
|
2010-07-13 10:02:11 +00:00
|
|
|
Register scratch3,
|
2009-07-10 09:40:47 +00:00
|
|
|
int index,
|
|
|
|
String* name,
|
|
|
|
Label* miss);
|
|
|
|
|
2009-12-09 14:54:34 +00:00
|
|
|
bool GenerateLoadCallback(JSObject* object,
|
2009-07-10 09:40:47 +00:00
|
|
|
JSObject* holder,
|
|
|
|
Register receiver,
|
|
|
|
Register name_reg,
|
|
|
|
Register scratch1,
|
|
|
|
Register scratch2,
|
2010-07-13 10:02:11 +00:00
|
|
|
Register scratch3,
|
2009-07-10 09:40:47 +00:00
|
|
|
AccessorInfo* callback,
|
|
|
|
String* name,
|
2009-12-09 14:54:34 +00:00
|
|
|
Label* miss,
|
|
|
|
Failure** failure);
|
2009-07-10 09:40:47 +00:00
|
|
|
|
|
|
|
void GenerateLoadConstant(JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
Register receiver,
|
|
|
|
Register scratch1,
|
|
|
|
Register scratch2,
|
2010-07-13 10:02:11 +00:00
|
|
|
Register scratch3,
|
2009-07-10 09:40:47 +00:00
|
|
|
Object* value,
|
|
|
|
String* name,
|
|
|
|
Label* miss);
|
|
|
|
|
|
|
|
void GenerateLoadInterceptor(JSObject* object,
|
|
|
|
JSObject* holder,
|
2009-07-29 12:34:21 +00:00
|
|
|
LookupResult* lookup,
|
2009-07-10 09:40:47 +00:00
|
|
|
Register receiver,
|
|
|
|
Register name_reg,
|
|
|
|
Register scratch1,
|
|
|
|
Register scratch2,
|
2010-07-13 10:02:11 +00:00
|
|
|
Register scratch3,
|
2009-07-10 09:40:47 +00:00
|
|
|
String* name,
|
|
|
|
Label* miss);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-02-02 11:32:17 +00:00
|
|
|
static void LookupPostInterceptor(JSObject* holder,
|
|
|
|
String* name,
|
|
|
|
LookupResult* lookup);
|
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
private:
|
2009-02-25 16:52:15 +00:00
|
|
|
HandleScope scope_;
|
2008-07-03 15:10:15 +00:00
|
|
|
MacroAssembler masm_;
|
2009-07-10 09:40:47 +00:00
|
|
|
Failure* failure_;
|
2008-07-03 15:10:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class LoadStubCompiler: public StubCompiler {
|
|
|
|
public:
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadNonexistent(String* name,
|
|
|
|
JSObject* object,
|
|
|
|
JSObject* last);
|
|
|
|
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadField(JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
int index,
|
|
|
|
String* name);
|
|
|
|
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadCallback(String* name,
|
|
|
|
JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
AccessorInfo* callback);
|
|
|
|
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadConstant(JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
Object* value,
|
|
|
|
String* name);
|
|
|
|
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadInterceptor(JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
String* name);
|
|
|
|
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadGlobal(JSObject* object,
|
|
|
|
GlobalObject* holder,
|
|
|
|
JSGlobalPropertyCell* cell,
|
|
|
|
String* name,
|
|
|
|
bool is_dont_delete);
|
2009-06-30 10:05:36 +00:00
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
private:
|
2010-12-07 11:01:02 +00:00
|
|
|
MaybeObject* GetCode(PropertyType type, String* name);
|
2008-07-03 15:10:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class KeyedLoadStubCompiler: public StubCompiler {
|
|
|
|
public:
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadField(String* name,
|
|
|
|
JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
int index);
|
2010-04-15 11:25:41 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadCallback(String* name,
|
|
|
|
JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
AccessorInfo* callback);
|
2010-04-15 11:25:41 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadConstant(String* name,
|
|
|
|
JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
Object* value);
|
2010-04-15 11:25:41 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadInterceptor(JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
String* name);
|
2010-04-15 11:25:41 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadArrayLength(String* name);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadStringLength(String* name);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileLoadFunctionPrototype(String* name);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
private:
|
2010-10-25 15:22:03 +00:00
|
|
|
MaybeObject* GetCode(PropertyType type, String* name);
|
2008-07-03 15:10:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class StoreStubCompiler: public StubCompiler {
|
|
|
|
public:
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileStoreField(JSObject* object,
|
|
|
|
int index,
|
|
|
|
Map* transition,
|
|
|
|
String* name);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileStoreCallback(JSObject* object,
|
|
|
|
AccessorInfo* callbacks,
|
|
|
|
String* name);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileStoreInterceptor(JSObject* object,
|
|
|
|
String* name);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileStoreGlobal(GlobalObject* object,
|
|
|
|
JSGlobalPropertyCell* holder,
|
|
|
|
String* name);
|
2009-06-30 10:05:36 +00:00
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
private:
|
2010-12-07 11:01:02 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* GetCode(PropertyType type, String* name);
|
2008-07-03 15:10:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class KeyedStoreStubCompiler: public StubCompiler {
|
|
|
|
public:
|
2010-12-07 11:01:02 +00:00
|
|
|
MaybeObject* CompileStoreField(JSObject* object,
|
|
|
|
int index,
|
|
|
|
Map* transition,
|
|
|
|
String* name);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
private:
|
2010-10-25 15:22:03 +00:00
|
|
|
MaybeObject* GetCode(PropertyType type, String* name);
|
2008-07-03 15:10:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-05-06 13:21:53 +00:00
|
|
|
// List of functions with custom constant call IC stubs.
|
|
|
|
//
|
|
|
|
// Installation of custom call generators for the selected builtins is
|
|
|
|
// handled by the bootstrapper.
|
|
|
|
//
|
2010-09-21 12:54:12 +00:00
|
|
|
// Each entry has a name of a global object property holding an object
|
|
|
|
// optionally followed by ".prototype" (this controls whether the
|
|
|
|
// generator is set on the object itself or, in case it's a function,
|
|
|
|
// on the its instance prototype), a name of a builtin function on the
|
|
|
|
// object (the one the generator is set for), and a name of the
|
|
|
|
// generator (used to build ids and generator function names).
|
|
|
|
#define CUSTOM_CALL_IC_GENERATORS(V) \
|
|
|
|
V(Array.prototype, push, ArrayPush) \
|
|
|
|
V(Array.prototype, pop, ArrayPop) \
|
|
|
|
V(String.prototype, charCodeAt, StringCharCodeAt) \
|
|
|
|
V(String.prototype, charAt, StringCharAt) \
|
|
|
|
V(String, fromCharCode, StringFromCharCode) \
|
2010-09-27 23:41:41 +00:00
|
|
|
V(Math, floor, MathFloor) \
|
|
|
|
V(Math, abs, MathAbs)
|
2010-05-06 13:21:53 +00:00
|
|
|
|
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
class CallStubCompiler: public StubCompiler {
|
|
|
|
public:
|
2010-05-06 13:21:53 +00:00
|
|
|
enum {
|
2010-09-21 12:54:12 +00:00
|
|
|
#define DECLARE_CALL_GENERATOR_ID(ignored1, ignore2, name) \
|
2010-05-06 13:21:53 +00:00
|
|
|
k##name##CallGenerator,
|
|
|
|
CUSTOM_CALL_IC_GENERATORS(DECLARE_CALL_GENERATOR_ID)
|
|
|
|
#undef DECLARE_CALL_GENERATOR_ID
|
|
|
|
kNumCallGenerators
|
|
|
|
};
|
|
|
|
|
2010-07-02 14:15:04 +00:00
|
|
|
CallStubCompiler(int argc,
|
|
|
|
InLoopFlag in_loop,
|
|
|
|
Code::Kind kind,
|
|
|
|
InlineCacheHolderFlag cache_holder);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileCallField(JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
int index,
|
|
|
|
String* name);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileCallConstant(Object* object,
|
|
|
|
JSObject* holder,
|
|
|
|
JSFunction* function,
|
|
|
|
String* name,
|
|
|
|
CheckType check);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileCallInterceptor(JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
String* name);
|
|
|
|
MUST_USE_RESULT MaybeObject* CompileCallGlobal(JSObject* object,
|
|
|
|
GlobalObject* holder,
|
|
|
|
JSGlobalPropertyCell* cell,
|
|
|
|
JSFunction* function,
|
|
|
|
String* name);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2010-09-09 13:38:01 +00:00
|
|
|
// Compiles a custom call constant/global IC using the generator
|
|
|
|
// with given id. For constant calls cell is NULL.
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileCustomCall(int generator_id,
|
|
|
|
Object* object,
|
|
|
|
JSObject* holder,
|
|
|
|
JSGlobalPropertyCell* cell,
|
|
|
|
JSFunction* function,
|
|
|
|
String* name);
|
|
|
|
|
|
|
|
#define DECLARE_CALL_GENERATOR(ignored1, ignored2, name) \
|
|
|
|
MUST_USE_RESULT MaybeObject* Compile##name##Call(Object* object, \
|
|
|
|
JSObject* holder, \
|
|
|
|
JSGlobalPropertyCell* cell, \
|
|
|
|
JSFunction* function, \
|
|
|
|
String* fname);
|
2010-05-06 13:21:53 +00:00
|
|
|
CUSTOM_CALL_IC_GENERATORS(DECLARE_CALL_GENERATOR)
|
|
|
|
#undef DECLARE_CALL_GENERATOR
|
2010-03-12 13:45:31 +00:00
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
private:
|
|
|
|
const ParameterCount arguments_;
|
2009-06-30 14:07:29 +00:00
|
|
|
const InLoopFlag in_loop_;
|
2010-06-07 08:27:32 +00:00
|
|
|
const Code::Kind kind_;
|
2010-07-02 14:15:04 +00:00
|
|
|
const InlineCacheHolderFlag cache_holder_;
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
const ParameterCount& arguments() { return arguments_; }
|
|
|
|
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* GetCode(PropertyType type, String* name);
|
2010-05-06 13:21:53 +00:00
|
|
|
|
|
|
|
// Convenience function. Calls GetCode above passing
|
|
|
|
// CONSTANT_FUNCTION type and the name of the given function.
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* GetCode(JSFunction* function);
|
2010-06-07 08:27:32 +00:00
|
|
|
|
|
|
|
void GenerateNameCheck(String* name, Label* miss);
|
|
|
|
|
2010-09-09 13:38:01 +00:00
|
|
|
void GenerateGlobalReceiverCheck(JSObject* object,
|
|
|
|
JSObject* holder,
|
|
|
|
String* name,
|
|
|
|
Label* miss);
|
|
|
|
|
|
|
|
// Generates code to load the function from the cell checking that
|
|
|
|
// it still contains the same function.
|
|
|
|
void GenerateLoadFunctionFromCell(JSGlobalPropertyCell* cell,
|
|
|
|
JSFunction* function,
|
|
|
|
Label* miss);
|
|
|
|
|
2010-08-06 08:49:59 +00:00
|
|
|
// Generates a jump to CallIC miss stub. Returns Failure if the jump cannot
|
|
|
|
// be generated.
|
2010-10-25 15:22:03 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* GenerateMissBranch();
|
2008-07-03 15:10:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2009-08-26 12:22:44 +00:00
|
|
|
class ConstructStubCompiler: public StubCompiler {
|
|
|
|
public:
|
|
|
|
explicit ConstructStubCompiler() {}
|
|
|
|
|
2010-11-24 06:26:36 +00:00
|
|
|
MUST_USE_RESULT MaybeObject* CompileConstructStub(JSFunction* function);
|
2009-08-26 12:22:44 +00:00
|
|
|
|
|
|
|
private:
|
2010-10-25 15:22:03 +00:00
|
|
|
MaybeObject* GetCode();
|
2009-08-26 12:22:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-04-28 14:06:35 +00:00
|
|
|
// Holds information about possible function call optimizations.
|
|
|
|
class CallOptimization BASE_EMBEDDED {
|
|
|
|
public:
|
|
|
|
explicit CallOptimization(LookupResult* lookup);
|
|
|
|
|
|
|
|
explicit CallOptimization(JSFunction* function);
|
|
|
|
|
|
|
|
bool is_constant_call() const {
|
|
|
|
return constant_function_ != NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
JSFunction* constant_function() const {
|
|
|
|
ASSERT(constant_function_ != NULL);
|
|
|
|
return constant_function_;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool is_simple_api_call() const {
|
|
|
|
return is_simple_api_call_;
|
|
|
|
}
|
|
|
|
|
|
|
|
FunctionTemplateInfo* expected_receiver_type() const {
|
|
|
|
ASSERT(is_simple_api_call_);
|
|
|
|
return expected_receiver_type_;
|
|
|
|
}
|
|
|
|
|
|
|
|
CallHandlerInfo* api_call_info() const {
|
|
|
|
ASSERT(is_simple_api_call_);
|
|
|
|
return api_call_info_;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Returns the depth of the object having the expected type in the
|
|
|
|
// prototype chain between the two arguments.
|
|
|
|
int GetPrototypeDepthOfExpectedType(JSObject* object,
|
|
|
|
JSObject* holder) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Initialize(JSFunction* function);
|
|
|
|
|
|
|
|
// Determines whether the given function can be called using the
|
|
|
|
// fast api call builtin.
|
|
|
|
void AnalyzePossibleApiFunction(JSFunction* function);
|
|
|
|
|
|
|
|
JSFunction* constant_function_;
|
|
|
|
bool is_simple_api_call_;
|
|
|
|
FunctionTemplateInfo* expected_receiver_type_;
|
|
|
|
CallHandlerInfo* api_call_info_;
|
|
|
|
};
|
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
} } // namespace v8::internal
|
|
|
|
|
|
|
|
#endif // V8_STUB_CACHE_H_
|