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/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1349 InvokeFlag flag, | 1349 InvokeFlag flag, |
1350 const CallWrapper& call_wrapper = NullCallWrapper()); | 1350 const CallWrapper& call_wrapper = NullCallWrapper()); |
1351 | 1351 |
1352 // Store the code object for the given builtin in the target register and | 1352 // Store the code object for the given builtin in the target register and |
1353 // setup the function in a1. | 1353 // setup the function in a1. |
1354 void GetBuiltinEntry(Register target, Builtins::JavaScript id); | 1354 void GetBuiltinEntry(Register target, Builtins::JavaScript id); |
1355 | 1355 |
1356 // Store the function for the given builtin in the target register. | 1356 // Store the function for the given builtin in the target register. |
1357 void GetBuiltinFunction(Register target, Builtins::JavaScript id); | 1357 void GetBuiltinFunction(Register target, Builtins::JavaScript id); |
1358 | 1358 |
| 1359 void BranchIfNotBuiltin(Register function, Register temp, |
| 1360 BuiltinFunctionId id, Label* miss); |
| 1361 |
1359 struct Unresolved { | 1362 struct Unresolved { |
1360 int pc; | 1363 int pc; |
1361 uint32_t flags; // See Bootstrapper::FixupFlags decoders/encoders. | 1364 uint32_t flags; // See Bootstrapper::FixupFlags decoders/encoders. |
1362 const char* name; | 1365 const char* name; |
1363 }; | 1366 }; |
1364 | 1367 |
1365 Handle<Object> CodeObject() { | 1368 Handle<Object> CodeObject() { |
1366 DCHECK(!code_object_.is_null()); | 1369 DCHECK(!code_object_.is_null()); |
1367 return code_object_; | 1370 return code_object_; |
1368 } | 1371 } |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1804 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1807 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1805 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1808 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1806 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1809 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1807 #else | 1810 #else |
1808 #define ACCESS_MASM(masm) masm-> | 1811 #define ACCESS_MASM(masm) masm-> |
1809 #endif | 1812 #endif |
1810 | 1813 |
1811 } } // namespace v8::internal | 1814 } } // namespace v8::internal |
1812 | 1815 |
1813 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1816 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |