OLD | NEW |
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_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/mips/assembler-mips.h" | 10 #include "src/mips/assembler-mips.h" |
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1316 InvokeFlag flag, | 1316 InvokeFlag flag, |
1317 const CallWrapper& call_wrapper = NullCallWrapper()); | 1317 const CallWrapper& call_wrapper = NullCallWrapper()); |
1318 | 1318 |
1319 // Store the code object for the given builtin in the target register and | 1319 // Store the code object for the given builtin in the target register and |
1320 // setup the function in a1. | 1320 // setup the function in a1. |
1321 void GetBuiltinEntry(Register target, Builtins::JavaScript id); | 1321 void GetBuiltinEntry(Register target, Builtins::JavaScript id); |
1322 | 1322 |
1323 // Store the function for the given builtin in the target register. | 1323 // Store the function for the given builtin in the target register. |
1324 void GetBuiltinFunction(Register target, Builtins::JavaScript id); | 1324 void GetBuiltinFunction(Register target, Builtins::JavaScript id); |
1325 | 1325 |
1326 void BranchIfNotBuiltin(Register function, Register temp, | |
1327 BuiltinFunctionId id, Label* miss); | |
1328 | |
1329 struct Unresolved { | 1326 struct Unresolved { |
1330 int pc; | 1327 int pc; |
1331 uint32_t flags; // See Bootstrapper::FixupFlags decoders/encoders. | 1328 uint32_t flags; // See Bootstrapper::FixupFlags decoders/encoders. |
1332 const char* name; | 1329 const char* name; |
1333 }; | 1330 }; |
1334 | 1331 |
1335 Handle<Object> CodeObject() { | 1332 Handle<Object> CodeObject() { |
1336 DCHECK(!code_object_.is_null()); | 1333 DCHECK(!code_object_.is_null()); |
1337 return code_object_; | 1334 return code_object_; |
1338 } | 1335 } |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1738 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1735 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1739 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1736 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1740 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1737 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1741 #else | 1738 #else |
1742 #define ACCESS_MASM(masm) masm-> | 1739 #define ACCESS_MASM(masm) masm-> |
1743 #endif | 1740 #endif |
1744 | 1741 |
1745 } } // namespace v8::internal | 1742 } } // namespace v8::internal |
1746 | 1743 |
1747 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1744 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |