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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 6880321: Removed InvokeJSFlags enum, we already have InvokeFlag for the same purpose. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 static inline Operand SmiUntagOperand(Register object) { 48 static inline Operand SmiUntagOperand(Register object) {
49 return Operand(object, ASR, kSmiTagSize); 49 return Operand(object, ASR, kSmiTagSize);
50 } 50 }
51 51
52 52
53 53
54 // Give alias names to registers 54 // Give alias names to registers
55 const Register cp = { 8 }; // JavaScript context pointer 55 const Register cp = { 8 }; // JavaScript context pointer
56 const Register roots = { 10 }; // Roots array pointer. 56 const Register roots = { 10 }; // Roots array pointer.
57 57
58 enum InvokeJSFlags {
59 CALL_JS,
60 JUMP_JS
61 };
62
63
64 // Flags used for the AllocateInNewSpace functions. 58 // Flags used for the AllocateInNewSpace functions.
65 enum AllocationFlags { 59 enum AllocationFlags {
66 // No special flags. 60 // No special flags.
67 NO_ALLOCATION_FLAGS = 0, 61 NO_ALLOCATION_FLAGS = 0,
68 // Return the pointer to the allocated already tagged as a heap object. 62 // Return the pointer to the allocated already tagged as a heap object.
69 TAG_OBJECT = 1 << 0, 63 TAG_OBJECT = 1 << 0,
70 // The content of the result register already contains the allocation top in 64 // The content of the result register already contains the allocation top in
71 // new space. 65 // new space.
72 RESULT_CONTAINS_TOP = 1 << 1, 66 RESULT_CONTAINS_TOP = 1 << 1,
73 // Specify that the requested size of the space to allocate is specified in 67 // Specify that the requested size of the space to allocate is specified in
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 int stack_space); 794 int stack_space);
801 795
802 // Jump to a runtime routine. 796 // Jump to a runtime routine.
803 void JumpToExternalReference(const ExternalReference& builtin); 797 void JumpToExternalReference(const ExternalReference& builtin);
804 798
805 MaybeObject* TryJumpToExternalReference(const ExternalReference& ext); 799 MaybeObject* TryJumpToExternalReference(const ExternalReference& ext);
806 800
807 // Invoke specified builtin JavaScript function. Adds an entry to 801 // Invoke specified builtin JavaScript function. Adds an entry to
808 // the unresolved list if the name does not resolve. 802 // the unresolved list if the name does not resolve.
809 void InvokeBuiltin(Builtins::JavaScript id, 803 void InvokeBuiltin(Builtins::JavaScript id,
810 InvokeJSFlags flags, 804 InvokeFlag flag,
811 CallWrapper* call_wrapper = NULL); 805 CallWrapper* call_wrapper = NULL);
812 806
813 // Store the code object for the given builtin in the target register and 807 // Store the code object for the given builtin in the target register and
814 // setup the function in r1. 808 // setup the function in r1.
815 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 809 void GetBuiltinEntry(Register target, Builtins::JavaScript id);
816 810
817 // Store the function for the given builtin in the target register. 811 // Store the function for the given builtin in the target register.
818 void GetBuiltinFunction(Register target, Builtins::JavaScript id); 812 void GetBuiltinFunction(Register target, Builtins::JavaScript id);
819 813
820 Handle<Object> CodeObject() { 814 Handle<Object> CodeObject() {
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1100 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1107 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1101 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1108 #else 1102 #else
1109 #define ACCESS_MASM(masm) masm-> 1103 #define ACCESS_MASM(masm) masm->
1110 #endif 1104 #endif
1111 1105
1112 1106
1113 } } // namespace v8::internal 1107 } } // namespace v8::internal
1114 1108
1115 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1109 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698