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

Side by Side Diff: src/builtins.h

Issue 1467473002: Install ConstructNonConstructable as construct stub for non-constructables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years 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/compiler.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 #include "src/handles.h" 8 #include "src/handles.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ 79 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \
80 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) \ 80 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) \
81 \ 81 \
82 V(RestrictedFunctionPropertiesThrower, NO_EXTRA_ARGUMENTS) \ 82 V(RestrictedFunctionPropertiesThrower, NO_EXTRA_ARGUMENTS) \
83 V(RestrictedStrictArgumentsPropertiesThrower, NO_EXTRA_ARGUMENTS) 83 V(RestrictedStrictArgumentsPropertiesThrower, NO_EXTRA_ARGUMENTS)
84 84
85 // Define list of builtins implemented in assembly. 85 // Define list of builtins implemented in assembly.
86 #define BUILTIN_LIST_A(V) \ 86 #define BUILTIN_LIST_A(V) \
87 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 87 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \
88 \ 88 \
89 V(ConstructedNonConstructable, BUILTIN, UNINITIALIZED, kNoExtraICState) \
90 \
89 V(CallFunction_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, \ 91 V(CallFunction_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, \
90 kNoExtraICState) \ 92 kNoExtraICState) \
91 V(CallFunction_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ 93 V(CallFunction_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \
92 kNoExtraICState) \ 94 kNoExtraICState) \
93 V(CallFunction_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 95 V(CallFunction_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \
94 V(Call_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 96 V(Call_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, kNoExtraICState) \
95 V(Call_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ 97 V(Call_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \
96 kNoExtraICState) \ 98 kNoExtraICState) \
97 V(Call_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 99 V(Call_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \
98 \ 100 \
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 278
277 // Note: These are always Code objects, but to conform with 279 // Note: These are always Code objects, but to conform with
278 // IterateBuiltins() above which assumes Object**'s for the callback 280 // IterateBuiltins() above which assumes Object**'s for the callback
279 // function f, we use an Object* array here. 281 // function f, we use an Object* array here.
280 Object* builtins_[builtin_count]; 282 Object* builtins_[builtin_count];
281 const char* names_[builtin_count]; 283 const char* names_[builtin_count];
282 284
283 static void Generate_Adaptor(MacroAssembler* masm, 285 static void Generate_Adaptor(MacroAssembler* masm,
284 CFunctionId id, 286 CFunctionId id,
285 BuiltinExtraArguments extra_args); 287 BuiltinExtraArguments extra_args);
288 static void Generate_ConstructedNonConstructable(MacroAssembler* masm);
286 static void Generate_CompileLazy(MacroAssembler* masm); 289 static void Generate_CompileLazy(MacroAssembler* masm);
287 static void Generate_InOptimizationQueue(MacroAssembler* masm); 290 static void Generate_InOptimizationQueue(MacroAssembler* masm);
288 static void Generate_CompileOptimized(MacroAssembler* masm); 291 static void Generate_CompileOptimized(MacroAssembler* masm);
289 static void Generate_CompileOptimizedConcurrent(MacroAssembler* masm); 292 static void Generate_CompileOptimizedConcurrent(MacroAssembler* masm);
290 static void Generate_JSConstructStubGeneric(MacroAssembler* masm); 293 static void Generate_JSConstructStubGeneric(MacroAssembler* masm);
291 static void Generate_JSBuiltinsConstructStub(MacroAssembler* masm); 294 static void Generate_JSBuiltinsConstructStub(MacroAssembler* masm);
292 static void Generate_JSConstructStubApi(MacroAssembler* masm); 295 static void Generate_JSConstructStubApi(MacroAssembler* masm);
293 static void Generate_JSEntryTrampoline(MacroAssembler* masm); 296 static void Generate_JSEntryTrampoline(MacroAssembler* masm);
294 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); 297 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm);
295 static void Generate_NotifyDeoptimized(MacroAssembler* masm); 298 static void Generate_NotifyDeoptimized(MacroAssembler* masm);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 friend class BuiltinFunctionTable; 376 friend class BuiltinFunctionTable;
374 friend class Isolate; 377 friend class Isolate;
375 378
376 DISALLOW_COPY_AND_ASSIGN(Builtins); 379 DISALLOW_COPY_AND_ASSIGN(Builtins);
377 }; 380 };
378 381
379 } // namespace internal 382 } // namespace internal
380 } // namespace v8 383 } // namespace v8
381 384
382 #endif // V8_BUILTINS_H_ 385 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698