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

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

Issue 1316543002: MIPS: Correctify instanceof and make it optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
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_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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 // Machine code version of Map::GetConstructor(). 1064 // Machine code version of Map::GetConstructor().
1065 // |temp| holds |result|'s map when done, and |temp2| its instance type. 1065 // |temp| holds |result|'s map when done, and |temp2| its instance type.
1066 void GetMapConstructor(Register result, Register map, Register temp, 1066 void GetMapConstructor(Register result, Register map, Register temp,
1067 Register temp2); 1067 Register temp2);
1068 1068
1069 // Try to get function prototype of a function and puts the value in 1069 // Try to get function prototype of a function and puts the value in
1070 // the result register. Checks that the function really is a 1070 // the result register. Checks that the function really is a
1071 // function and jumps to the miss label if the fast checks fail. The 1071 // function and jumps to the miss label if the fast checks fail. The
1072 // function register will be untouched; the other registers may be 1072 // function register will be untouched; the other registers may be
1073 // clobbered. 1073 // clobbered.
1074 void TryGetFunctionPrototype(Register function, 1074 void TryGetFunctionPrototype(Register function, Register result,
1075 Register result, 1075 Register scratch, Label* miss);
1076 Register scratch,
1077 Label* miss,
1078 bool miss_on_bound_function = false);
1079 1076
1080 void GetObjectType(Register function, 1077 void GetObjectType(Register function,
1081 Register map, 1078 Register map,
1082 Register type_reg); 1079 Register type_reg);
1083 1080
1084 // Check if a map for a JSObject indicates that the object has fast elements. 1081 // Check if a map for a JSObject indicates that the object has fast elements.
1085 // Jump to the specified label if it does not. 1082 // Jump to the specified label if it does not.
1086 void CheckFastElements(Register map, 1083 void CheckFastElements(Register map,
1087 Register scratch, 1084 Register scratch,
1088 Label* fail); 1085 Label* fail);
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1842 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1839 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1843 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1840 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1844 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1841 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1845 #else 1842 #else
1846 #define ACCESS_MASM(masm) masm-> 1843 #define ACCESS_MASM(masm) masm->
1847 #endif 1844 #endif
1848 1845
1849 } } // namespace v8::internal 1846 } } // namespace v8::internal
1850 1847
1851 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1848 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698