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

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

Issue 817873003: Use weak cell in monomorphic KeyedStore IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips Created 5 years, 12 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
« no previous file with comments | « src/ic/ic-compiler.cc ('k') | src/mips/macro-assembler-mips.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_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 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 Label* fail, 1073 Label* fail,
1074 SmiCheckType smi_check_type); 1074 SmiCheckType smi_check_type);
1075 1075
1076 1076
1077 void CheckMap(Register obj, 1077 void CheckMap(Register obj,
1078 Register scratch, 1078 Register scratch,
1079 Heap::RootListIndex index, 1079 Heap::RootListIndex index,
1080 Label* fail, 1080 Label* fail,
1081 SmiCheckType smi_check_type); 1081 SmiCheckType smi_check_type);
1082 1082
1083 // Check if the map of an object is equal to a specified map and branch to a 1083 // Check if the map of an object is equal to a specified weak map and branch
1084 // specified target if equal. Skip the smi check if not required (object is 1084 // to a specified target if equal. Skip the smi check if not required
1085 // known to be a heap object) 1085 // (object is known to be a heap object)
1086 void DispatchMap(Register obj, 1086 void DispatchWeakMap(Register obj, Register scratch1, Register scratch2,
1087 Register scratch, 1087 Handle<WeakCell> cell, Handle<Code> success,
1088 Handle<Map> map, 1088 SmiCheckType smi_check_type);
1089 Handle<Code> success,
1090 SmiCheckType smi_check_type);
1091 1089
1092 // Get value of the weak cell. 1090 // Get value of the weak cell.
1093 void GetWeakValue(Register value, Handle<WeakCell> cell); 1091 void GetWeakValue(Register value, Handle<WeakCell> cell);
1094 1092
1095 // Load the value of the weak cell in the value register. Branch to the 1093 // Load the value of the weak cell in the value register. Branch to the
1096 // given miss label is the weak cell was cleared. 1094 // given miss label is the weak cell was cleared.
1097 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); 1095 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss);
1098 1096
1099 // Load and check the instance type of an object for being a string. 1097 // Load and check the instance type of an object for being a string.
1100 // Loads the type into the second argument register. 1098 // Loads the type into the second argument register.
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1723 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1726 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1724 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1727 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1725 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1728 #else 1726 #else
1729 #define ACCESS_MASM(masm) masm-> 1727 #define ACCESS_MASM(masm) masm->
1730 #endif 1728 #endif
1731 1729
1732 } } // namespace v8::internal 1730 } } // namespace v8::internal
1733 1731
1734 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1732 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/ic/ic-compiler.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698