Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Side by Side Diff: src/runtime/runtime.h

Issue 1540953004: [runtime] Rewrite Function.prototype.toString in C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typos. Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 #include "src/unicode.h" 10 #include "src/unicode.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 F(ThrowNonMethodError, 0, 1) \ 77 F(ThrowNonMethodError, 0, 1) \
78 F(ThrowUnsupportedSuperError, 0, 1) \ 78 F(ThrowUnsupportedSuperError, 0, 1) \
79 F(ThrowConstructorNonCallableError, 1, 1) \ 79 F(ThrowConstructorNonCallableError, 1, 1) \
80 F(ThrowArrayNotSubclassableError, 0, 1) \ 80 F(ThrowArrayNotSubclassableError, 0, 1) \
81 F(ThrowStaticPrototypeError, 0, 1) \ 81 F(ThrowStaticPrototypeError, 0, 1) \
82 F(ThrowIfStaticPrototype, 1, 1) \ 82 F(ThrowIfStaticPrototype, 1, 1) \
83 F(HomeObjectSymbol, 0, 1) \ 83 F(HomeObjectSymbol, 0, 1) \
84 F(DefineClass, 5, 1) \ 84 F(DefineClass, 5, 1) \
85 F(FinalizeClassDefinition, 2, 1) \ 85 F(FinalizeClassDefinition, 2, 1) \
86 F(DefineClassMethod, 3, 1) \ 86 F(DefineClassMethod, 3, 1) \
87 F(ClassGetSourceCode, 1, 1) \
88 F(LoadFromSuper, 4, 1) \ 87 F(LoadFromSuper, 4, 1) \
89 F(LoadKeyedFromSuper, 4, 1) \ 88 F(LoadKeyedFromSuper, 4, 1) \
90 F(StoreToSuper_Strict, 4, 1) \ 89 F(StoreToSuper_Strict, 4, 1) \
91 F(StoreToSuper_Sloppy, 4, 1) \ 90 F(StoreToSuper_Sloppy, 4, 1) \
92 F(StoreKeyedToSuper_Strict, 4, 1) \ 91 F(StoreKeyedToSuper_Strict, 4, 1) \
93 F(StoreKeyedToSuper_Sloppy, 4, 1) \ 92 F(StoreKeyedToSuper_Sloppy, 4, 1) \
94 F(GetSuperConstructor, 1, 1) 93 F(GetSuperConstructor, 1, 1)
95 94
96 95
97 #define FOR_EACH_INTRINSIC_COLLECTIONS(F) \ 96 #define FOR_EACH_INTRINSIC_COLLECTIONS(F) \
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 F(InterpreterGreaterThan, 2, 1) \ 224 F(InterpreterGreaterThan, 2, 1) \
226 F(InterpreterLessThanOrEqual, 2, 1) \ 225 F(InterpreterLessThanOrEqual, 2, 1) \
227 F(InterpreterGreaterThanOrEqual, 2, 1) \ 226 F(InterpreterGreaterThanOrEqual, 2, 1) \
228 F(InterpreterToBoolean, 1, 1) \ 227 F(InterpreterToBoolean, 1, 1) \
229 F(InterpreterLogicalNot, 1, 1) \ 228 F(InterpreterLogicalNot, 1, 1) \
230 F(InterpreterTypeOf, 1, 1) \ 229 F(InterpreterTypeOf, 1, 1) \
231 F(InterpreterNewClosure, 2, 1) \ 230 F(InterpreterNewClosure, 2, 1) \
232 F(InterpreterForInPrepare, 1, 1) 231 F(InterpreterForInPrepare, 1, 1)
233 232
234 233
235 #define FOR_EACH_INTRINSIC_FUNCTION(F) \ 234 #define FOR_EACH_INTRINSIC_FUNCTION(F) \
236 F(FunctionGetName, 1, 1) \ 235 F(FunctionGetName, 1, 1) \
237 F(FunctionSetName, 2, 1) \ 236 F(FunctionSetName, 2, 1) \
238 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ 237 F(CompleteFunctionConstruction, 3, 1) \
239 F(CompleteFunctionConstruction, 3, 1) \ 238 F(FunctionRemovePrototype, 1, 1) \
240 F(FunctionIsArrow, 1, 1) \ 239 F(FunctionGetScript, 1, 1) \
241 F(FunctionIsConciseMethod, 1, 1) \ 240 F(FunctionGetSourceCode, 1, 1) \
242 F(FunctionRemovePrototype, 1, 1) \ 241 F(FunctionGetScriptSourcePosition, 1, 1) \
243 F(FunctionGetScript, 1, 1) \ 242 F(FunctionGetPositionForOffset, 2, 1) \
244 F(FunctionGetSourceCode, 1, 1) \ 243 F(FunctionSetInstanceClassName, 2, 1) \
245 F(FunctionGetScriptSourcePosition, 1, 1) \ 244 F(FunctionSetLength, 2, 1) \
246 F(FunctionGetPositionForOffset, 2, 1) \ 245 F(FunctionSetPrototype, 2, 1) \
247 F(FunctionSetInstanceClassName, 2, 1) \ 246 F(FunctionIsAPIFunction, 1, 1) \
248 F(FunctionSetLength, 2, 1) \ 247 F(SetCode, 2, 1) \
249 F(FunctionSetPrototype, 2, 1) \ 248 F(SetNativeFlag, 1, 1) \
250 F(FunctionIsAPIFunction, 1, 1) \ 249 F(ThrowStrongModeTooFewArguments, 0, 1) \
251 F(FunctionHidesSource, 1, 1) \ 250 F(IsConstructor, 1, 1) \
252 F(SetCode, 2, 1) \ 251 F(SetForceInlineFlag, 1, 1) \
253 F(SetNativeFlag, 1, 1) \ 252 F(FunctionBindArguments, 5, 1) \
254 F(ThrowStrongModeTooFewArguments, 0, 1) \ 253 F(BoundFunctionGetBindings, 1, 1) \
255 F(IsConstructor, 1, 1) \ 254 F(NewObjectFromBound, 1, 1) \
256 F(SetForceInlineFlag, 1, 1) \ 255 F(Call, -1 /* >= 2 */, 1) \
257 F(FunctionBindArguments, 5, 1) \ 256 F(TailCall, -1 /* >= 2 */, 1) \
258 F(BoundFunctionGetBindings, 1, 1) \ 257 F(Apply, 5, 1) \
259 F(NewObjectFromBound, 1, 1) \ 258 F(ConvertReceiver, 1, 1) \
260 F(Call, -1 /* >= 2 */, 1) \ 259 F(IsFunction, 1, 1) \
261 F(TailCall, -1 /* >= 2 */, 1) \ 260 F(FunctionToString, 1, 1)
262 F(Apply, 5, 1) \
263 F(ConvertReceiver, 1, 1) \
264 F(IsFunction, 1, 1)
265 261
266 262
267 #define FOR_EACH_INTRINSIC_GENERATOR(F) \ 263 #define FOR_EACH_INTRINSIC_GENERATOR(F) \
268 F(CreateJSGeneratorObject, 0, 1) \ 264 F(CreateJSGeneratorObject, 0, 1) \
269 F(SuspendJSGeneratorObject, -1, 1) \ 265 F(SuspendJSGeneratorObject, -1, 1) \
270 F(ResumeJSGeneratorObject, 3, 1) \ 266 F(ResumeJSGeneratorObject, 3, 1) \
271 F(GeneratorClose, 1, 1) \ 267 F(GeneratorClose, 1, 1) \
272 F(GeneratorGetFunction, 1, 1) \ 268 F(GeneratorGetFunction, 1, 1) \
273 F(GeneratorGetContext, 1, 1) \ 269 F(GeneratorGetContext, 1, 1) \
274 F(GeneratorGetReceiver, 1, 1) \ 270 F(GeneratorGetReceiver, 1, 1) \
275 F(GeneratorGetContinuation, 1, 1) \ 271 F(GeneratorGetContinuation, 1, 1) \
276 F(GeneratorGetSourcePosition, 1, 1) \ 272 F(GeneratorGetSourcePosition, 1, 1) \
277 F(FunctionIsGenerator, 1, 1) \
278 F(GeneratorNext, 2, 1) \ 273 F(GeneratorNext, 2, 1) \
279 F(GeneratorThrow, 2, 1) 274 F(GeneratorThrow, 2, 1)
280 275
281 276
282 #ifdef V8_I18N_SUPPORT 277 #ifdef V8_I18N_SUPPORT
283 #define FOR_EACH_INTRINSIC_I18N(F) \ 278 #define FOR_EACH_INTRINSIC_I18N(F) \
284 F(CanonicalizeLanguageTag, 1, 1) \ 279 F(CanonicalizeLanguageTag, 1, 1) \
285 F(AvailableLocalesOf, 1, 1) \ 280 F(AvailableLocalesOf, 1, 1) \
286 F(GetDefaultICULocale, 0, 1) \ 281 F(GetDefaultICULocale, 0, 1) \
287 F(GetLanguageTagVariants, 1, 1) \ 282 F(GetLanguageTagVariants, 1, 1) \
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 1247
1253 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1248 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1254 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1249 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1255 STATIC_ASSERT(LANGUAGE_END == 3); 1250 STATIC_ASSERT(LANGUAGE_END == 3);
1256 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1251 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1257 1252
1258 } // namespace internal 1253 } // namespace internal
1259 } // namespace v8 1254 } // namespace v8
1260 1255
1261 #endif // V8_RUNTIME_RUNTIME_H_ 1256 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698