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

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 263923004: Next bunch of fixes for check elimination. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/mips/lithium-codegen-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 #include "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "ia32/lithium-codegen-ia32.h" 9 #include "ia32/lithium-codegen-ia32.h"
10 #include "ic.h" 10 #include "ic.h"
(...skipping 1993 matching lines...) Expand 10 before | Expand all | Expand 10 after
2004 } 2004 }
2005 2005
2006 2006
2007 void LCodeGen::DoConstantE(LConstantE* instr) { 2007 void LCodeGen::DoConstantE(LConstantE* instr) {
2008 __ lea(ToRegister(instr->result()), Operand::StaticVariable(instr->value())); 2008 __ lea(ToRegister(instr->result()), Operand::StaticVariable(instr->value()));
2009 } 2009 }
2010 2010
2011 2011
2012 void LCodeGen::DoConstantT(LConstantT* instr) { 2012 void LCodeGen::DoConstantT(LConstantT* instr) {
2013 Register reg = ToRegister(instr->result()); 2013 Register reg = ToRegister(instr->result());
2014 Handle<Object> handle = instr->value(isolate()); 2014 Handle<Object> object = instr->value(isolate());
2015 AllowDeferredHandleDereference smi_check; 2015 AllowDeferredHandleDereference smi_check;
2016 __ LoadObject(reg, handle); 2016 if (instr->hydrogen()->HasObjectMap()) {
2017 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle();
2018 CHECK(object->IsHeapObject());
2019 CHECK(!object_map->is_stable() ||
2020 *object_map == Handle<HeapObject>::cast(object)->map());
2021 }
2022 __ LoadObject(reg, object);
2017 } 2023 }
2018 2024
2019 2025
2020 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { 2026 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
2021 Register result = ToRegister(instr->result()); 2027 Register result = ToRegister(instr->result());
2022 Register map = ToRegister(instr->value()); 2028 Register map = ToRegister(instr->value());
2023 __ EnumLength(result, map); 2029 __ EnumLength(result, map);
2024 } 2030 }
2025 2031
2026 2032
(...skipping 4397 matching lines...) Expand 10 before | Expand all | Expand 10 after
6424 __ bind(deferred->exit()); 6430 __ bind(deferred->exit());
6425 __ bind(&done); 6431 __ bind(&done);
6426 } 6432 }
6427 6433
6428 6434
6429 #undef __ 6435 #undef __
6430 6436
6431 } } // namespace v8::internal 6437 } } // namespace v8::internal
6432 6438
6433 #endif // V8_TARGET_ARCH_IA32 6439 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698