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

Side by Side Diff: src/ic/handler-compiler.h

Issue 1636013002: Replace HeapType with a non-templated FieldType class. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tracing of generalizations Created 4 years, 11 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_IC_HANDLER_COMPILER_H_ 5 #ifndef V8_IC_HANDLER_COMPILER_H_
6 #define V8_IC_HANDLER_COMPILER_H_ 6 #define V8_IC_HANDLER_COMPILER_H_
7 7
8 #include "src/ic/access-compiler.h" 8 #include "src/ic/access-compiler.h"
9 #include "src/ic/ic-state.h" 9 #include "src/ic/ic-state.h"
10 10
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 private: 259 private:
260 void GenerateRestoreName(Handle<Name> name); 260 void GenerateRestoreName(Handle<Name> name);
261 void GenerateRestoreMap(Handle<Map> transition, Register map_reg, 261 void GenerateRestoreMap(Handle<Map> transition, Register map_reg,
262 Register scratch, Label* miss); 262 Register scratch, Label* miss);
263 263
264 void GenerateConstantCheck(Register map_reg, int descriptor, 264 void GenerateConstantCheck(Register map_reg, int descriptor,
265 Register value_reg, Register scratch, 265 Register value_reg, Register scratch,
266 Label* miss_label); 266 Label* miss_label);
267 267
268 bool RequiresFieldTypeChecks(HeapType* field_type) const; 268 bool RequiresFieldTypeChecks(FieldType* field_type) const;
269 void GenerateFieldTypeChecks(HeapType* field_type, Register value_reg, 269 void GenerateFieldTypeChecks(FieldType* field_type, Register value_reg,
270 Label* miss_label); 270 Label* miss_label);
271 271
272 static Builtins::Name SlowBuiltin(Code::Kind kind) { 272 static Builtins::Name SlowBuiltin(Code::Kind kind) {
273 switch (kind) { 273 switch (kind) {
274 case Code::STORE_IC: 274 case Code::STORE_IC:
275 return Builtins::kStoreIC_Slow; 275 return Builtins::kStoreIC_Slow;
276 case Code::KEYED_STORE_IC: 276 case Code::KEYED_STORE_IC:
277 return Builtins::kKeyedStoreIC_Slow; 277 return Builtins::kKeyedStoreIC_Slow;
278 default: 278 default:
279 UNREACHABLE(); 279 UNREACHABLE();
(...skipping 17 matching lines...) Expand all
297 void CompileElementHandlers(MapHandleList* receiver_maps, 297 void CompileElementHandlers(MapHandleList* receiver_maps,
298 CodeHandleList* handlers, 298 CodeHandleList* handlers,
299 LanguageMode language_mode); 299 LanguageMode language_mode);
300 300
301 static void GenerateStoreSlow(MacroAssembler* masm); 301 static void GenerateStoreSlow(MacroAssembler* masm);
302 }; 302 };
303 } // namespace internal 303 } // namespace internal
304 } // namespace v8 304 } // namespace v8
305 305
306 #endif // V8_IC_HANDLER_COMPILER_H_ 306 #endif // V8_IC_HANDLER_COMPILER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698