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

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

Issue 1476763002: Make whether or not a Code object should be created by masm explicit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enum class FTW 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/arm/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 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_ARM_MACRO_ASSEMBLER_ARM_H_ 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_
6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 82
83 enum TargetAddressStorageMode { 83 enum TargetAddressStorageMode {
84 CAN_INLINE_TARGET_ADDRESS, 84 CAN_INLINE_TARGET_ADDRESS,
85 NEVER_INLINE_TARGET_ADDRESS 85 NEVER_INLINE_TARGET_ADDRESS
86 }; 86 };
87 87
88 // MacroAssembler implements a collection of frequently used macros. 88 // MacroAssembler implements a collection of frequently used macros.
89 class MacroAssembler: public Assembler { 89 class MacroAssembler: public Assembler {
90 public: 90 public:
91 // The isolate parameter can be NULL if the macro assembler should 91 MacroAssembler(Isolate* isolate, void* buffer, int size,
92 // not use isolate-dependent functionality. In this case, it's the 92 CodeObjectRequired create_code_object);
93 // responsibility of the caller to never invoke such function on the
94 // macro assembler.
95 MacroAssembler(Isolate* isolate, void* buffer, int size);
96 93
97 94
98 // Returns the size of a call in instructions. Note, the value returned is 95 // Returns the size of a call in instructions. Note, the value returned is
99 // only valid as long as no entries are added to the constant pool between 96 // only valid as long as no entries are added to the constant pool between
100 // checking the call size and emitting the actual call. 97 // checking the call size and emitting the actual call.
101 static int CallSize(Register target, Condition cond = al); 98 static int CallSize(Register target, Condition cond = al);
102 int CallSize(Address target, RelocInfo::Mode rmode, Condition cond = al); 99 int CallSize(Address target, RelocInfo::Mode rmode, Condition cond = al);
103 int CallStubSize(CodeStub* stub, 100 int CallStubSize(CodeStub* stub,
104 TypeFeedbackId ast_id = TypeFeedbackId::None(), 101 TypeFeedbackId ast_id = TypeFeedbackId::None(),
105 Condition cond = al); 102 Condition cond = al);
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1555 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1559 #else 1556 #else
1560 #define ACCESS_MASM(masm) masm-> 1557 #define ACCESS_MASM(masm) masm->
1561 #endif 1558 #endif
1562 1559
1563 1560
1564 } // namespace internal 1561 } // namespace internal
1565 } // namespace v8 1562 } // namespace v8
1566 1563
1567 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1564 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/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