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

Side by Side Diff: src/contexts.h

Issue 1335723002: [stubs] Simplify the non-function case of CallConstructStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Michi's comment. Created 5 years, 3 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/arm64/code-stubs-arm64.cc ('k') | src/full-codegen/arm/full-codegen-arm.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 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_CONTEXTS_H_ 5 #ifndef V8_CONTEXTS_H_
6 #define V8_CONTEXTS_H_ 6 #define V8_CONTEXTS_H_
7 7
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ 85 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \
86 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ 86 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \
87 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \ 87 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \
88 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ 88 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \
89 V(TO_PRIMITIVE_INDEX, JSFunction, to_primitive) \ 89 V(TO_PRIMITIVE_INDEX, JSFunction, to_primitive) \
90 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) 90 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun)
91 91
92 92
93 #define NATIVE_CONTEXT_JS_BUILTINS(V) \ 93 #define NATIVE_CONTEXT_JS_BUILTINS(V) \
94 V(APPLY_PREPARE_BUILTIN_INDEX, JSFunction, apply_prepare_builtin) \ 94 V(APPLY_PREPARE_BUILTIN_INDEX, JSFunction, apply_prepare_builtin) \
95 V(CALL_FUNCTION_PROXY_AS_CONSTRUCTOR_BUILTIN_INDEX, JSFunction, \
96 call_function_proxy_as_constructor_builtin) \
97 V(CALL_NON_FUNCTION_AS_CONSTRUCTOR_BUILTIN_INDEX, JSFunction, \
98 call_non_function_as_constructor_builtin) \
99 V(COMPARE_BUILTIN_INDEX, JSFunction, compare_builtin) \ 95 V(COMPARE_BUILTIN_INDEX, JSFunction, compare_builtin) \
100 V(COMPARE_STRONG_BUILTIN_INDEX, JSFunction, compare_strong_builtin) \ 96 V(COMPARE_STRONG_BUILTIN_INDEX, JSFunction, compare_strong_builtin) \
101 V(CONCAT_ITERABLE_TO_ARRAY_BUILTIN_INDEX, JSFunction, \ 97 V(CONCAT_ITERABLE_TO_ARRAY_BUILTIN_INDEX, JSFunction, \
102 concat_iterable_to_array_builtin) \ 98 concat_iterable_to_array_builtin) \
103 V(EQUALS_BUILTIN_INDEX, JSFunction, equals_builtin) \ 99 V(EQUALS_BUILTIN_INDEX, JSFunction, equals_builtin) \
104 V(REFLECT_APPLY_PREPARE_BUILTIN_INDEX, JSFunction, \ 100 V(REFLECT_APPLY_PREPARE_BUILTIN_INDEX, JSFunction, \
105 reflect_apply_prepare_builtin) \ 101 reflect_apply_prepare_builtin) \
106 V(REFLECT_CONSTRUCT_PREPARE_BUILTIN_INDEX, JSFunction, \ 102 V(REFLECT_CONSTRUCT_PREPARE_BUILTIN_INDEX, JSFunction, \
107 reflect_construct_prepare_builtin) \ 103 reflect_construct_prepare_builtin) \
108 V(STACK_OVERFLOW_BUILTIN_INDEX, JSFunction, stack_overflow_builtin) \ 104 V(STACK_OVERFLOW_BUILTIN_INDEX, JSFunction, stack_overflow_builtin) \
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 555 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
560 #endif 556 #endif
561 557
562 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 558 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
563 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 559 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
564 }; 560 };
565 561
566 } } // namespace v8::internal 562 } } // namespace v8::internal
567 563
568 #endif // V8_CONTEXTS_H_ 564 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698