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

Side by Side Diff: src/builtins.h

Issue 1027283004: [es6] do not add caller/arguments to ES6 function definitions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 8 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
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_BUILTINS_H_ 5 #ifndef V8_BUILTINS_H_
6 #define V8_BUILTINS_H_ 6 #define V8_BUILTINS_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 23 matching lines...) Expand all
34 CODE_AGE_LIST_WITH_ARG(CODE_AGE_LIST_IGNORE_ARG, V) 34 CODE_AGE_LIST_WITH_ARG(CODE_AGE_LIST_IGNORE_ARG, V)
35 35
36 #define DECLARE_CODE_AGE_BUILTIN(C, V) \ 36 #define DECLARE_CODE_AGE_BUILTIN(C, V) \
37 V(Make##C##CodeYoungAgainOddMarking, BUILTIN, \ 37 V(Make##C##CodeYoungAgainOddMarking, BUILTIN, \
38 UNINITIALIZED, kNoExtraICState) \ 38 UNINITIALIZED, kNoExtraICState) \
39 V(Make##C##CodeYoungAgainEvenMarking, BUILTIN, \ 39 V(Make##C##CodeYoungAgainEvenMarking, BUILTIN, \
40 UNINITIALIZED, kNoExtraICState) 40 UNINITIALIZED, kNoExtraICState)
41 41
42 42
43 // Define list of builtins implemented in C++. 43 // Define list of builtins implemented in C++.
44 #define BUILTIN_LIST_C(V) \ 44 #define BUILTIN_LIST_C(V) \
45 V(Illegal, NO_EXTRA_ARGUMENTS) \ 45 V(Illegal, NO_EXTRA_ARGUMENTS) \
46 \ 46 \
47 V(EmptyFunction, NO_EXTRA_ARGUMENTS) \ 47 V(EmptyFunction, NO_EXTRA_ARGUMENTS) \
48 \ 48 \
49 V(ArrayPush, NO_EXTRA_ARGUMENTS) \ 49 V(ArrayPush, NO_EXTRA_ARGUMENTS) \
50 V(ArrayPop, NO_EXTRA_ARGUMENTS) \ 50 V(ArrayPop, NO_EXTRA_ARGUMENTS) \
51 V(ArrayShift, NO_EXTRA_ARGUMENTS) \ 51 V(ArrayShift, NO_EXTRA_ARGUMENTS) \
52 V(ArrayUnshift, NO_EXTRA_ARGUMENTS) \ 52 V(ArrayUnshift, NO_EXTRA_ARGUMENTS) \
53 V(ArraySlice, NO_EXTRA_ARGUMENTS) \ 53 V(ArraySlice, NO_EXTRA_ARGUMENTS) \
54 V(ArraySplice, NO_EXTRA_ARGUMENTS) \ 54 V(ArraySplice, NO_EXTRA_ARGUMENTS) \
55 V(ArrayConcat, NO_EXTRA_ARGUMENTS) \ 55 V(ArrayConcat, NO_EXTRA_ARGUMENTS) \
56 \ 56 \
57 V(HandleApiCall, NEEDS_CALLED_FUNCTION) \ 57 V(HandleApiCall, NEEDS_CALLED_FUNCTION) \
58 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \ 58 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \
59 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ 59 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \
60 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) \ 60 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) \
61 \ 61 \
62 V(StrictModePoisonPill, NO_EXTRA_ARGUMENTS) \ 62 V(RestrictedFunctionPropertiesThrower, NO_EXTRA_ARGUMENTS) \
63 V(GeneratorPoisonPill, NO_EXTRA_ARGUMENTS) 63 V(RestrictedStrictArgumentsPropertiesThrower, NO_EXTRA_ARGUMENTS)
64 64
65 // Define list of builtins implemented in assembly. 65 // Define list of builtins implemented in assembly.
66 #define BUILTIN_LIST_A(V) \ 66 #define BUILTIN_LIST_A(V) \
67 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 67 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \
68 V(InOptimizationQueue, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 68 V(InOptimizationQueue, BUILTIN, UNINITIALIZED, kNoExtraICState) \
69 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 69 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, kNoExtraICState) \
70 V(JSConstructStubForDerived, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 70 V(JSConstructStubForDerived, BUILTIN, UNINITIALIZED, kNoExtraICState) \
71 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 71 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, kNoExtraICState) \
72 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 72 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \
73 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 73 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 friend class BuiltinFunctionTable; 350 friend class BuiltinFunctionTable;
351 friend class Isolate; 351 friend class Isolate;
352 352
353 DISALLOW_COPY_AND_ASSIGN(Builtins); 353 DISALLOW_COPY_AND_ASSIGN(Builtins);
354 }; 354 };
355 355
356 } } // namespace v8::internal 356 } } // namespace v8::internal
357 357
358 #endif // V8_BUILTINS_H_ 358 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698