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

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

Issue 2165593002: [builtins] Move builtins into own files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 5 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 | « BUILD.gn ('k') | src/builtins/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_BUILTINS_H_ 5 #ifndef V8_BUILTINS_BUILTINS_H_
6 #define V8_BUILTINS_BUILTINS_H_ 6 #define V8_BUILTINS_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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 ASM(NumberConstructor) \ 396 ASM(NumberConstructor) \
397 /* ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case */ \ 397 /* ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case */ \
398 ASM(NumberConstructor_ConstructStub) \ 398 ASM(NumberConstructor_ConstructStub) \
399 CPP(NumberPrototypeToExponential) \ 399 CPP(NumberPrototypeToExponential) \
400 CPP(NumberPrototypeToFixed) \ 400 CPP(NumberPrototypeToFixed) \
401 CPP(NumberPrototypeToLocaleString) \ 401 CPP(NumberPrototypeToLocaleString) \
402 CPP(NumberPrototypeToPrecision) \ 402 CPP(NumberPrototypeToPrecision) \
403 CPP(NumberPrototypeToString) \ 403 CPP(NumberPrototypeToString) \
404 /* ES6 section 20.1.3.7 Number.prototype.valueOf ( ) */ \ 404 /* ES6 section 20.1.3.7 Number.prototype.valueOf ( ) */ \
405 TFJ(NumberPrototypeValueOf, 1) \ 405 TFJ(NumberPrototypeValueOf, 1) \
406 \
406 /* Object */ \ 407 /* Object */ \
407 CPP(ObjectAssign) \ 408 CPP(ObjectAssign) \
408 CPP(ObjectCreate) \ 409 CPP(ObjectCreate) \
409 CPP(ObjectDefineGetter) \ 410 CPP(ObjectDefineGetter) \
410 CPP(ObjectDefineProperties) \ 411 CPP(ObjectDefineProperties) \
411 CPP(ObjectDefineProperty) \ 412 CPP(ObjectDefineProperty) \
412 CPP(ObjectDefineSetter) \ 413 CPP(ObjectDefineSetter) \
413 CPP(ObjectEntries) \ 414 CPP(ObjectEntries) \
414 CPP(ObjectFreeze) \ 415 CPP(ObjectFreeze) \
415 CPP(ObjectGetOwnPropertyDescriptor) \ 416 CPP(ObjectGetOwnPropertyDescriptor) \
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 572
572 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction( 573 MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction(
573 Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver, 574 Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver,
574 int argc, Handle<Object> args[]); 575 int argc, Handle<Object> args[]);
575 576
576 enum ExitFrameType { EXIT, BUILTIN_EXIT }; 577 enum ExitFrameType { EXIT, BUILTIN_EXIT };
577 578
578 static void Generate_Adaptor(MacroAssembler* masm, Address builtin_address, 579 static void Generate_Adaptor(MacroAssembler* masm, Address builtin_address,
579 ExitFrameType exit_frame_type); 580 ExitFrameType exit_frame_type);
580 581
582 static MaybeHandle<JSFunction> CompileString(Handle<Context> context,
Yang 2016/07/19 15:00:11 Let's move this to compiler.cc after this CL.
583 Handle<String> source,
584 ParseRestriction restriction);
585
581 private: 586 private:
582 Builtins(); 587 Builtins();
583 588
584 static void Generate_CallFunction(MacroAssembler* masm, 589 static void Generate_CallFunction(MacroAssembler* masm,
585 ConvertReceiverMode mode, 590 ConvertReceiverMode mode,
586 TailCallMode tail_call_mode); 591 TailCallMode tail_call_mode);
587 592
588 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, 593 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm,
589 TailCallMode tail_call_mode); 594 TailCallMode tail_call_mode);
590 595
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 628
624 friend class Isolate; 629 friend class Isolate;
625 630
626 DISALLOW_COPY_AND_ASSIGN(Builtins); 631 DISALLOW_COPY_AND_ASSIGN(Builtins);
627 }; 632 };
628 633
629 } // namespace internal 634 } // namespace internal
630 } // namespace v8 635 } // namespace v8
631 636
632 #endif // V8_BUILTINS_BUILTINS_H_ 637 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/builtins/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698