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

Side by Side Diff: src/builtins.h

Issue 1815203002: ES6: Faster implementation of OrdinaryHasInstance (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | 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 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 V(DatePrototypeToUTCString, kNone) \ 103 V(DatePrototypeToUTCString, kNone) \
104 V(DatePrototypeToString, kNone) \ 104 V(DatePrototypeToString, kNone) \
105 V(DatePrototypeToTimeString, kNone) \ 105 V(DatePrototypeToTimeString, kNone) \
106 V(DatePrototypeValueOf, kNone) \ 106 V(DatePrototypeValueOf, kNone) \
107 V(DatePrototypeGetYear, kNone) \ 107 V(DatePrototypeGetYear, kNone) \
108 V(DatePrototypeSetYear, kNone) \ 108 V(DatePrototypeSetYear, kNone) \
109 \ 109 \
110 V(FunctionConstructor, kTargetAndNewTarget) \ 110 V(FunctionConstructor, kTargetAndNewTarget) \
111 V(FunctionPrototypeBind, kNone) \ 111 V(FunctionPrototypeBind, kNone) \
112 V(FunctionPrototypeToString, kNone) \ 112 V(FunctionPrototypeToString, kNone) \
113 V(FunctionHasInstance, kNone) \
114 \ 113 \
115 V(GeneratorFunctionConstructor, kTargetAndNewTarget) \ 114 V(GeneratorFunctionConstructor, kTargetAndNewTarget) \
116 \ 115 \
117 V(GlobalEval, kTarget) \ 116 V(GlobalEval, kTarget) \
118 \ 117 \
119 V(MathAcos, kNone) \ 118 V(MathAcos, kNone) \
120 V(MathAsin, kNone) \ 119 V(MathAsin, kNone) \
121 V(MathAtan, kNone) \ 120 V(MathAtan, kNone) \
122 V(MathFround, kNone) \ 121 V(MathFround, kNone) \
123 V(MathImul, kNone) \ 122 V(MathImul, kNone) \
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 \ 196 \
198 V(ConstructFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 197 V(ConstructFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \
199 V(ConstructBoundFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 198 V(ConstructBoundFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \
200 V(ConstructProxy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 199 V(ConstructProxy, BUILTIN, UNINITIALIZED, kNoExtraICState) \
201 V(Construct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 200 V(Construct, BUILTIN, UNINITIALIZED, kNoExtraICState) \
202 \ 201 \
203 V(Apply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 202 V(Apply, BUILTIN, UNINITIALIZED, kNoExtraICState) \
204 \ 203 \
205 V(HandleFastApiCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 204 V(HandleFastApiCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \
206 \ 205 \
206 V(FunctionHasInstance, BUILTIN, UNINITIALIZED, kNoExtraICState) \
207 \
207 V(InOptimizationQueue, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 208 V(InOptimizationQueue, BUILTIN, UNINITIALIZED, kNoExtraICState) \
208 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 209 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, kNoExtraICState) \
209 V(JSBuiltinsConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 210 V(JSBuiltinsConstructStub, BUILTIN, UNINITIALIZED, kNoExtraICState) \
210 V(JSBuiltinsConstructStubForDerived, BUILTIN, UNINITIALIZED, \ 211 V(JSBuiltinsConstructStubForDerived, BUILTIN, UNINITIALIZED, \
211 kNoExtraICState) \ 212 kNoExtraICState) \
212 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 213 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, kNoExtraICState) \
213 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 214 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \
214 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 215 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \
215 V(CompileLazy, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 216 V(CompileLazy, BUILTIN, UNINITIALIZED, kNoExtraICState) \
216 V(CompileOptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \ 217 V(CompileOptimized, BUILTIN, UNINITIALIZED, kNoExtraICState) \
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 static void Generate_DatePrototypeGetUTCMilliseconds(MacroAssembler* masm); 550 static void Generate_DatePrototypeGetUTCMilliseconds(MacroAssembler* masm);
550 // ES6 section 20.3.4.17 Date.prototype.getUTCMinutes ( ) 551 // ES6 section 20.3.4.17 Date.prototype.getUTCMinutes ( )
551 static void Generate_DatePrototypeGetUTCMinutes(MacroAssembler* masm); 552 static void Generate_DatePrototypeGetUTCMinutes(MacroAssembler* masm);
552 // ES6 section 20.3.4.18 Date.prototype.getUTCMonth ( ) 553 // ES6 section 20.3.4.18 Date.prototype.getUTCMonth ( )
553 static void Generate_DatePrototypeGetUTCMonth(MacroAssembler* masm); 554 static void Generate_DatePrototypeGetUTCMonth(MacroAssembler* masm);
554 // ES6 section 20.3.4.19 Date.prototype.getUTCSeconds ( ) 555 // ES6 section 20.3.4.19 Date.prototype.getUTCSeconds ( )
555 static void Generate_DatePrototypeGetUTCSeconds(MacroAssembler* masm); 556 static void Generate_DatePrototypeGetUTCSeconds(MacroAssembler* masm);
556 557
557 static void Generate_FunctionPrototypeApply(MacroAssembler* masm); 558 static void Generate_FunctionPrototypeApply(MacroAssembler* masm);
558 static void Generate_FunctionPrototypeCall(MacroAssembler* masm); 559 static void Generate_FunctionPrototypeCall(MacroAssembler* masm);
560 static void Generate_FunctionHasInstance(MacroAssembler* masm);
559 561
560 static void Generate_ReflectApply(MacroAssembler* masm); 562 static void Generate_ReflectApply(MacroAssembler* masm);
561 static void Generate_ReflectConstruct(MacroAssembler* masm); 563 static void Generate_ReflectConstruct(MacroAssembler* masm);
562 564
563 static void Generate_InternalArrayCode(MacroAssembler* masm); 565 static void Generate_InternalArrayCode(MacroAssembler* masm);
564 static void Generate_ArrayCode(MacroAssembler* masm); 566 static void Generate_ArrayCode(MacroAssembler* masm);
565 567
566 enum class MathMaxMinKind { kMax, kMin }; 568 enum class MathMaxMinKind { kMax, kMin };
567 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind); 569 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind);
568 // ES6 section 20.2.2.24 Math.max ( value1, value2 , ...values ) 570 // ES6 section 20.2.2.24 Math.max ( value1, value2 , ...values )
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 friend class BuiltinFunctionTable; 623 friend class BuiltinFunctionTable;
622 friend class Isolate; 624 friend class Isolate;
623 625
624 DISALLOW_COPY_AND_ASSIGN(Builtins); 626 DISALLOW_COPY_AND_ASSIGN(Builtins);
625 }; 627 };
626 628
627 } // namespace internal 629 } // namespace internal
628 } // namespace v8 630 } // namespace v8
629 631
630 #endif // V8_BUILTINS_H_ 632 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698