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

Side by Side Diff: runtime/vm/intrinsifier.cc

Issue 2739643002: VM: Remove ZoneCompileType class. (Closed)
Patch Set: Created 3 years, 9 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 | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // Class for intrinsifying functions. 4 // Class for intrinsifying functions.
5 5
6 #include "vm/assembler.h" 6 #include "vm/assembler.h"
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/cpu.h" 8 #include "vm/cpu.h"
9 #include "vm/flags.h" 9 #include "vm/flags.h"
10 #include "vm/flow_graph.h" 10 #include "vm/flow_graph.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 return AddDefinition(new ConstantInstr(Object::ZoneHandle(Object::null()))); 322 return AddDefinition(new ConstantInstr(Object::ZoneHandle(Object::null())));
323 } 323 }
324 324
325 Definition* AddUnboxInstr(Representation rep, Value* value, bool is_checked) { 325 Definition* AddUnboxInstr(Representation rep, Value* value, bool is_checked) {
326 Definition* unboxed_value = 326 Definition* unboxed_value =
327 AddDefinition(UnboxInstr::Create(rep, value, Thread::kNoDeoptId)); 327 AddDefinition(UnboxInstr::Create(rep, value, Thread::kNoDeoptId));
328 if (is_checked) { 328 if (is_checked) {
329 // The type of |value| has already been checked and it is safe to 329 // The type of |value| has already been checked and it is safe to
330 // adjust reaching type. This is done manually because there is no type 330 // adjust reaching type. This is done manually because there is no type
331 // propagation when building intrinsics. 331 // propagation when building intrinsics.
332 unboxed_value->AsUnbox()->value()->SetReachingType(ZoneCompileType::Wrap( 332 unboxed_value->AsUnbox()->value()->SetReachingType(
333 CompileType::FromCid(CidForRepresentation(rep)))); 333 new CompileType(CompileType::FromCid(CidForRepresentation(rep))));
334 } 334 }
335 return unboxed_value; 335 return unboxed_value;
336 } 336 }
337 337
338 Definition* AddUnboxInstr(Representation rep, 338 Definition* AddUnboxInstr(Representation rep,
339 Definition* boxed, 339 Definition* boxed,
340 bool is_checked) { 340 bool is_checked) {
341 return AddUnboxInstr(rep, new Value(boxed), is_checked); 341 return AddUnboxInstr(rep, new Value(boxed), is_checked);
342 } 342 }
343 343
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 } 1167 }
1168 1168
1169 1169
1170 void Intrinsifier::RegExp_ExecuteMatchSticky(Assembler* assembler) { 1170 void Intrinsifier::RegExp_ExecuteMatchSticky(Assembler* assembler) {
1171 IntrinsifyRegExpExecuteMatch(assembler, /*sticky=*/true); 1171 IntrinsifyRegExpExecuteMatch(assembler, /*sticky=*/true);
1172 } 1172 }
1173 #endif // !defined(TARGET_ARCH_DBC) 1173 #endif // !defined(TARGET_ARCH_DBC)
1174 1174
1175 1175
1176 } // namespace dart 1176 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698