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

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

Issue 764003003: Reland parts of 'Use weak cells in map checks in polymorphic ICs' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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
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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 1114
1115 // Check if the map of an object is equal to a specified map and branch to a 1115 // Check if the map of an object is equal to a specified map and branch to a
1116 // specified target if equal. Skip the smi check if not required (object is 1116 // specified target if equal. Skip the smi check if not required (object is
1117 // known to be a heap object) 1117 // known to be a heap object)
1118 void DispatchMap(Register obj, 1118 void DispatchMap(Register obj,
1119 Register scratch, 1119 Register scratch,
1120 Handle<Map> map, 1120 Handle<Map> map,
1121 Handle<Code> success, 1121 Handle<Code> success,
1122 SmiCheckType smi_check_type); 1122 SmiCheckType smi_check_type);
1123 1123
1124 // Compare the given value and the value of the weak cell. Write the result
1125 // to the match register.
1126 void CmpWeakValue(Register match, Register value, Handle<WeakCell> cell);
1127
1128 // Load the value of the weak cell in the value register. Branch to the
1129 // given miss label is the weak cell was cleared.
1130 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss);
1124 1131
1125 // Load and check the instance type of an object for being a string. 1132 // Load and check the instance type of an object for being a string.
1126 // Loads the type into the second argument register. 1133 // Loads the type into the second argument register.
1127 // Returns a condition that will be enabled if the object was a string. 1134 // Returns a condition that will be enabled if the object was a string.
1128 Condition IsObjectStringType(Register obj, 1135 Condition IsObjectStringType(Register obj,
1129 Register type, 1136 Register type,
1130 Register result) { 1137 Register result) {
1131 ld(type, FieldMemOperand(obj, HeapObject::kMapOffset)); 1138 ld(type, FieldMemOperand(obj, HeapObject::kMapOffset));
1132 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset)); 1139 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset));
1133 And(type, type, Operand(kIsNotStringMask)); 1140 And(type, type, Operand(kIsNotStringMask));
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1794 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1788 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1795 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1789 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1796 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1790 #else 1797 #else
1791 #define ACCESS_MASM(masm) masm-> 1798 #define ACCESS_MASM(masm) masm->
1792 #endif 1799 #endif
1793 1800
1794 } } // namespace v8::internal 1801 } } // namespace v8::internal
1795 1802
1796 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1803 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698