blob: 5719fc895572bcbdfff3246ee7b22f0c739d851a [file] [log] [blame]
Steve Blocka7e24c12009-10-30 11:49:00 +00001// Copyright 2006-2008 the V8 project authors. All rights reserved.
2// Redistribution and use in source and binary forms, with or without
3// modification, are permitted provided that the following conditions are
4// met:
5//
6// * Redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer.
8// * Redistributions in binary form must reproduce the above
9// copyright notice, this list of conditions and the following
10// disclaimer in the documentation and/or other materials provided
11// with the distribution.
12// * Neither the name of Google Inc. nor the names of its
13// contributors may be used to endorse or promote products derived
14// from this software without specific prior written permission.
15//
16// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28#ifndef V8_RUNTIME_H_
29#define V8_RUNTIME_H_
30
31namespace v8 {
32namespace internal {
33
34// The interface to C++ runtime functions.
35
36// ----------------------------------------------------------------------------
37// RUNTIME_FUNCTION_LIST_ALWAYS defines runtime calls available in both
38// release and debug mode.
39// This macro should only be used by the macro RUNTIME_FUNCTION_LIST.
40
41// WARNING: RUNTIME_FUNCTION_LIST_ALWAYS_* is a very large macro that caused
42// MSVC Intellisense to crash. It was broken into two macros to work around
43// this problem. Please avoid large recursive macros whenever possible.
44#define RUNTIME_FUNCTION_LIST_ALWAYS_1(F) \
45 /* Property access */ \
46 F(GetProperty, 2, 1) \
47 F(KeyedGetProperty, 2, 1) \
48 F(DeleteProperty, 2, 1) \
49 F(HasLocalProperty, 2, 1) \
50 F(HasProperty, 2, 1) \
51 F(HasElement, 2, 1) \
52 F(IsPropertyEnumerable, 2, 1) \
53 F(GetPropertyNames, 1, 1) \
54 F(GetPropertyNamesFast, 1, 1) \
Leon Clarkee46be812010-01-19 14:06:41 +000055 F(GetLocalPropertyNames, 1, 1) \
56 F(GetLocalElementNames, 1, 1) \
57 F(GetInterceptorInfo, 1, 1) \
58 F(GetNamedInterceptorPropertyNames, 1, 1) \
59 F(GetIndexedInterceptorElementNames, 1, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +000060 F(GetArgumentsProperty, 1, 1) \
61 F(ToFastProperties, 1, 1) \
62 F(ToSlowProperties, 1, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +010063 F(FinishArrayPrototypeSetup, 1, 1) \
64 F(SpecialArrayFunctions, 1, 1) \
65 F(GetGlobalReceiver, 0, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +000066 \
67 F(IsInPrototypeChain, 2, 1) \
68 F(SetHiddenPrototype, 2, 1) \
69 \
70 F(IsConstructCall, 0, 1) \
71 \
Leon Clarkee46be812010-01-19 14:06:41 +000072 F(GetOwnProperty, 2, 1) \
73 \
74 F(IsExtensible, 1, 1) \
Steve Block8defd9f2010-07-08 12:39:36 +010075 F(PreventExtensions, 1, 1)\
Leon Clarkee46be812010-01-19 14:06:41 +000076 \
Steve Blocka7e24c12009-10-30 11:49:00 +000077 /* Utilities */ \
Steve Blocka7e24c12009-10-30 11:49:00 +000078 F(GetFunctionDelegate, 1, 1) \
79 F(GetConstructorDelegate, 1, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +000080 F(NewArgumentsFast, 3, 1) \
81 F(LazyCompile, 1, 1) \
82 F(SetNewFunctionAttributes, 1, 1) \
83 \
84 /* Array join support */ \
85 F(PushIfAbsent, 2, 1) \
86 F(ArrayConcat, 1, 1) \
87 \
88 /* Conversions */ \
89 F(ToBool, 1, 1) \
90 F(Typeof, 1, 1) \
91 \
92 F(StringToNumber, 1, 1) \
93 F(StringFromCharCodeArray, 1, 1) \
94 F(StringParseInt, 2, 1) \
95 F(StringParseFloat, 1, 1) \
96 F(StringToLowerCase, 1, 1) \
97 F(StringToUpperCase, 1, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +010098 F(StringSplit, 3, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +000099 F(CharFromCode, 1, 1) \
100 F(URIEscape, 1, 1) \
101 F(URIUnescape, 1, 1) \
102 \
103 F(NumberToString, 1, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +0100104 F(NumberToStringSkipCache, 1, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000105 F(NumberToInteger, 1, 1) \
Ben Murdoch7f4d5bd2010-06-15 11:15:29 +0100106 F(NumberToIntegerMapMinusZero, 1, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000107 F(NumberToJSUint32, 1, 1) \
108 F(NumberToJSInt32, 1, 1) \
109 F(NumberToSmi, 1, 1) \
110 \
111 /* Arithmetic operations */ \
112 F(NumberAdd, 2, 1) \
113 F(NumberSub, 2, 1) \
114 F(NumberMul, 2, 1) \
115 F(NumberDiv, 2, 1) \
116 F(NumberMod, 2, 1) \
117 F(NumberUnaryMinus, 1, 1) \
118 \
119 F(StringAdd, 2, 1) \
Leon Clarkee46be812010-01-19 14:06:41 +0000120 F(StringBuilderConcat, 3, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000121 \
122 /* Bit operations */ \
123 F(NumberOr, 2, 1) \
124 F(NumberAnd, 2, 1) \
125 F(NumberXor, 2, 1) \
126 F(NumberNot, 1, 1) \
127 \
128 F(NumberShl, 2, 1) \
129 F(NumberShr, 2, 1) \
130 F(NumberSar, 2, 1) \
131 \
132 /* Comparisons */ \
133 F(NumberEquals, 2, 1) \
134 F(StringEquals, 2, 1) \
135 \
136 F(NumberCompare, 3, 1) \
137 F(SmiLexicographicCompare, 2, 1) \
138 F(StringCompare, 2, 1) \
139 \
140 /* Math */ \
Steve Blocka7e24c12009-10-30 11:49:00 +0000141 F(Math_acos, 1, 1) \
142 F(Math_asin, 1, 1) \
143 F(Math_atan, 1, 1) \
144 F(Math_atan2, 2, 1) \
145 F(Math_ceil, 1, 1) \
146 F(Math_cos, 1, 1) \
147 F(Math_exp, 1, 1) \
148 F(Math_floor, 1, 1) \
149 F(Math_log, 1, 1) \
150 F(Math_pow, 2, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +0100151 F(Math_pow_cfunction, 2, 1) \
152 F(RoundNumber, 1, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000153 F(Math_sin, 1, 1) \
154 F(Math_sqrt, 1, 1) \
155 F(Math_tan, 1, 1) \
156 \
157 /* Regular expressions */ \
158 F(RegExpCompile, 3, 1) \
159 F(RegExpExec, 4, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +0100160 F(RegExpExecMultiple, 4, 1) \
161 F(RegExpInitializeObject, 5, 1) \
162 F(RegExpConstructResult, 3, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000163 \
164 /* Strings */ \
165 F(StringCharCodeAt, 2, 1) \
166 F(StringIndexOf, 3, 1) \
167 F(StringLastIndexOf, 3, 1) \
168 F(StringLocaleCompare, 2, 1) \
Steve Blockd0582a62009-12-15 09:54:21 +0000169 F(SubString, 3, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000170 F(StringReplaceRegExpWithString, 4, 1) \
171 F(StringMatch, 3, 1) \
Steve Block3ce2e202009-11-05 08:53:23 +0000172 F(StringTrim, 3, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +0100173 F(StringToArray, 1, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000174 \
175 /* Numbers */ \
176 F(NumberToRadixString, 2, 1) \
177 F(NumberToFixed, 2, 1) \
178 F(NumberToExponential, 2, 1) \
179 F(NumberToPrecision, 2, 1)
180
181#define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \
182 /* Reflection */ \
183 F(FunctionSetInstanceClassName, 2, 1) \
184 F(FunctionSetLength, 2, 1) \
185 F(FunctionSetPrototype, 2, 1) \
186 F(FunctionGetName, 1, 1) \
187 F(FunctionSetName, 2, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +0100188 F(FunctionRemovePrototype, 1, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000189 F(FunctionGetSourceCode, 1, 1) \
190 F(FunctionGetScript, 1, 1) \
191 F(FunctionGetScriptSourcePosition, 1, 1) \
192 F(FunctionGetPositionForOffset, 2, 1) \
193 F(FunctionIsAPIFunction, 1, 1) \
194 F(FunctionIsBuiltin, 1, 1) \
195 F(GetScript, 1, 1) \
196 F(CollectStackTrace, 2, 1) \
Steve Block3ce2e202009-11-05 08:53:23 +0000197 F(GetV8Version, 0, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000198 \
199 F(ClassOf, 1, 1) \
200 F(SetCode, 2, 1) \
201 \
202 F(CreateApiFunction, 1, 1) \
203 F(IsTemplate, 1, 1) \
204 F(GetTemplateField, 2, 1) \
205 F(DisableAccessChecks, 1, 1) \
206 F(EnableAccessChecks, 1, 1) \
207 \
208 /* Dates */ \
209 F(DateCurrentTime, 0, 1) \
210 F(DateParseString, 2, 1) \
211 F(DateLocalTimezone, 1, 1) \
212 F(DateLocalTimeOffset, 0, 1) \
213 F(DateDaylightSavingsOffset, 1, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +0100214 F(DateMakeDay, 3, 1) \
215 F(DateYMDFromTime, 2, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000216 \
217 /* Numbers */ \
Steve Blocka7e24c12009-10-30 11:49:00 +0000218 \
219 /* Globals */ \
220 F(CompileString, 2, 1) \
221 F(GlobalPrint, 1, 1) \
222 \
223 /* Eval */ \
224 F(GlobalReceiver, 1, 1) \
Leon Clarkee46be812010-01-19 14:06:41 +0000225 F(ResolvePossiblyDirectEval, 3, 2) \
Ben Murdoch7f4d5bd2010-06-15 11:15:29 +0100226 F(ResolvePossiblyDirectEvalNoLookup, 3, 2) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000227 \
228 F(SetProperty, -1 /* 3 or 4 */, 1) \
Andrei Popescu31002712010-02-23 13:46:05 +0000229 F(DefineOrRedefineDataProperty, 4, 1) \
230 F(DefineOrRedefineAccessorProperty, 5, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000231 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \
232 \
233 /* Arrays */ \
234 F(RemoveArrayHoles, 2, 1) \
235 F(GetArrayKeys, 2, 1) \
236 F(MoveArrayContents, 2, 1) \
237 F(EstimateNumberOfElements, 1, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +0100238 F(SwapElements, 3, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000239 \
240 /* Getters and Setters */ \
241 F(DefineAccessor, -1 /* 4 or 5 */, 1) \
242 F(LookupAccessor, 3, 1) \
243 \
244 /* Literals */ \
245 F(MaterializeRegExpLiteral, 4, 1)\
246 F(CreateArrayLiteralBoilerplate, 3, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000247 F(CloneLiteralBoilerplate, 1, 1) \
248 F(CloneShallowLiteralBoilerplate, 1, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +0100249 F(CreateObjectLiteral, 4, 1) \
250 F(CreateObjectLiteralShallow, 4, 1) \
Leon Clarkee46be812010-01-19 14:06:41 +0000251 F(CreateArrayLiteral, 3, 1) \
252 F(CreateArrayLiteralShallow, 3, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000253 \
254 /* Catch context extension objects */ \
255 F(CreateCatchExtensionObject, 2, 1) \
256 \
257 /* Statements */ \
258 F(NewClosure, 2, 1) \
259 F(NewObject, 1, 1) \
260 F(Throw, 1, 1) \
261 F(ReThrow, 1, 1) \
262 F(ThrowReferenceError, 1, 1) \
263 F(StackGuard, 1, 1) \
Steve Blockd0582a62009-12-15 09:54:21 +0000264 F(PromoteScheduledException, 0, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000265 \
266 /* Contexts */ \
267 F(NewContext, 1, 1) \
268 F(PushContext, 1, 1) \
269 F(PushCatchContext, 1, 1) \
270 F(LookupContext, 2, 1) \
271 F(LoadContextSlot, 2, 2) \
272 F(LoadContextSlotNoReferenceError, 2, 2) \
273 F(StoreContextSlot, 3, 1) \
274 \
275 /* Declarations and initialization */ \
276 F(DeclareGlobals, 3, 1) \
277 F(DeclareContextSlot, 4, 1) \
278 F(InitializeVarGlobal, -1 /* 1 or 2 */, 1) \
279 F(InitializeConstGlobal, 2, 1) \
280 F(InitializeConstContextSlot, 3, 1) \
281 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000282 \
283 /* Debugging */ \
284 F(DebugPrint, 1, 1) \
285 F(DebugTrace, 0, 1) \
286 F(TraceEnter, 0, 1) \
287 F(TraceExit, 1, 1) \
288 F(Abort, 2, 1) \
289 /* Logging */ \
290 F(Log, 2, 1) \
291 /* ES5 */ \
292 F(LocalKeys, 1, 1) \
Steve Blockd0582a62009-12-15 09:54:21 +0000293 /* Handle scopes */ \
294 F(DeleteHandleScopeExtensions, 0, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +0100295 /* Cache suport */ \
296 F(GetFromCache, 2, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000297 \
298 /* Pseudo functions - handled as macros by parser */ \
Andrei Popescu402d9372010-02-26 13:31:12 +0000299 F(IS_VAR, 1, 1)
Steve Blocka7e24c12009-10-30 11:49:00 +0000300
301#ifdef ENABLE_DEBUGGER_SUPPORT
302#define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \
303 /* Debugger support*/ \
304 F(DebugBreak, 0, 1) \
305 F(SetDebugEventListener, 2, 1) \
306 F(Break, 0, 1) \
307 F(DebugGetPropertyDetails, 2, 1) \
308 F(DebugGetProperty, 2, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000309 F(DebugPropertyTypeFromDetails, 1, 1) \
310 F(DebugPropertyAttributesFromDetails, 1, 1) \
311 F(DebugPropertyIndexFromDetails, 1, 1) \
Steve Blocka7e24c12009-10-30 11:49:00 +0000312 F(DebugNamedInterceptorPropertyValue, 2, 1) \
313 F(DebugIndexedInterceptorElementValue, 2, 1) \
314 F(CheckExecutionState, 1, 1) \
315 F(GetFrameCount, 1, 1) \
316 F(GetFrameDetails, 2, 1) \
317 F(GetScopeCount, 2, 1) \
318 F(GetScopeDetails, 3, 1) \
319 F(DebugPrintScopes, 0, 1) \
320 F(GetCFrames, 1, 1) \
321 F(GetThreadCount, 1, 1) \
322 F(GetThreadDetails, 2, 1) \
323 F(GetBreakLocations, 1, 1) \
324 F(SetFunctionBreakPoint, 3, 1) \
325 F(SetScriptBreakPoint, 3, 1) \
326 F(ClearBreakPoint, 1, 1) \
327 F(ChangeBreakOnException, 2, 1) \
328 F(PrepareStep, 3, 1) \
329 F(ClearStepping, 0, 1) \
330 F(DebugEvaluate, 4, 1) \
331 F(DebugEvaluateGlobal, 3, 1) \
332 F(DebugGetLoadedScripts, 0, 1) \
333 F(DebugReferencedBy, 3, 1) \
334 F(DebugConstructedBy, 2, 1) \
335 F(DebugGetPrototype, 1, 1) \
336 F(SystemBreak, 0, 1) \
337 F(DebugDisassembleFunction, 1, 1) \
338 F(DebugDisassembleConstructor, 1, 1) \
Steve Block6ded16b2010-05-10 14:33:55 +0100339 F(FunctionGetInferredName, 1, 1) \
340 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \
341 F(LiveEditGatherCompileInfo, 2, 1) \
342 F(LiveEditReplaceScript, 3, 1) \
343 F(LiveEditReplaceFunctionCode, 2, 1) \
344 F(LiveEditFunctionSetScript, 2, 1) \
345 F(LiveEditReplaceRefToNestedFunction, 3, 1) \
346 F(LiveEditPatchFunctionPositions, 2, 1) \
347 F(LiveEditCheckAndDropActivations, 2, 1) \
348 F(LiveEditCompareStringsLinewise, 2, 1) \
349 F(GetFunctionCodePositionFromSource, 2, 1) \
350 F(ExecuteInDebugContext, 2, 1)
Steve Blocka7e24c12009-10-30 11:49:00 +0000351#else
352#define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F)
353#endif
354
Steve Blockd0582a62009-12-15 09:54:21 +0000355#ifdef ENABLE_LOGGING_AND_PROFILING
356#define RUNTIME_FUNCTION_LIST_PROFILER_SUPPORT(F) \
Andrei Popescu402d9372010-02-26 13:31:12 +0000357 F(ProfilerResume, 2, 1) \
358 F(ProfilerPause, 2, 1)
Steve Blockd0582a62009-12-15 09:54:21 +0000359#else
360#define RUNTIME_FUNCTION_LIST_PROFILER_SUPPORT(F)
361#endif
362
Steve Blocka7e24c12009-10-30 11:49:00 +0000363#ifdef DEBUG
364#define RUNTIME_FUNCTION_LIST_DEBUG(F) \
365 /* Testing */ \
366 F(ListNatives, 0, 1)
367#else
368#define RUNTIME_FUNCTION_LIST_DEBUG(F)
369#endif
370
371
372// ----------------------------------------------------------------------------
373// RUNTIME_FUNCTION_LIST defines all runtime functions accessed
374// either directly by id (via the code generator), or indirectly
375// via a native call by name (from within JS code).
376
377#define RUNTIME_FUNCTION_LIST(F) \
378 RUNTIME_FUNCTION_LIST_ALWAYS_1(F) \
379 RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \
380 RUNTIME_FUNCTION_LIST_DEBUG(F) \
Steve Blockd0582a62009-12-15 09:54:21 +0000381 RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \
382 RUNTIME_FUNCTION_LIST_PROFILER_SUPPORT(F)
Steve Blocka7e24c12009-10-30 11:49:00 +0000383
384// ----------------------------------------------------------------------------
385// Runtime provides access to all C++ runtime functions.
386
387class Runtime : public AllStatic {
388 public:
389 enum FunctionId {
390#define F(name, nargs, ressize) k##name,
391 RUNTIME_FUNCTION_LIST(F)
392 kNofFunctions
393#undef F
394 };
395
396 // Runtime function descriptor.
397 struct Function {
398 // The JS name of the function.
399 const char* name;
400
Steve Blocka7e24c12009-10-30 11:49:00 +0000401 // The C++ (native) entry point.
402 byte* entry;
403
404 // The number of arguments expected; nargs < 0 if variable no. of
405 // arguments.
406 int nargs;
407 int stub_id;
408 // Size of result, if complex (larger than a single pointer),
409 // otherwise zero.
410 int result_size;
411 };
412
413 // Get the runtime function with the given function id.
414 static Function* FunctionForId(FunctionId fid);
415
416 // Get the runtime function with the given name.
417 static Function* FunctionForName(const char* name);
418
419 static int StringMatch(Handle<String> sub, Handle<String> pat, int index);
420
421 static bool IsUpperCaseChar(uint16_t ch);
422
423 // TODO(1240886): The following three methods are *not* handle safe,
424 // but accept handle arguments. This seems fragile.
425
426 // Support getting the characters in a string using [] notation as
427 // in Firefox/SpiderMonkey, Safari and Opera.
428 static Object* GetElementOrCharAt(Handle<Object> object, uint32_t index);
Steve Block6ded16b2010-05-10 14:33:55 +0100429 static Object* GetElement(Handle<Object> object, uint32_t index);
Steve Blocka7e24c12009-10-30 11:49:00 +0000430
431 static Object* SetObjectProperty(Handle<Object> object,
432 Handle<Object> key,
433 Handle<Object> value,
434 PropertyAttributes attr);
435
436 static Object* ForceSetObjectProperty(Handle<JSObject> object,
437 Handle<Object> key,
438 Handle<Object> value,
439 PropertyAttributes attr);
440
441 static Object* ForceDeleteObjectProperty(Handle<JSObject> object,
442 Handle<Object> key);
443
444 static Object* GetObjectProperty(Handle<Object> object, Handle<Object> key);
445
446 // This function is used in FunctionNameUsing* tests.
447 static Object* FindSharedFunctionInfoInScript(Handle<Script> script,
448 int position);
449
450 // Helper functions used stubs.
451 static void PerformGC(Object* result);
452};
453
454
455} } // namespace v8::internal
456
457#endif // V8_RUNTIME_H_