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

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

Issue 140943002: Fix logic error in assert in IsUndeclaredGlobal() (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A few more fixes Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3185 matching lines...) Expand 10 before | Expand all | Expand 10 after
3196 } 3196 }
3197 3197
3198 3198
3199 void LCodeGen::DoStoreGlobalGeneric(LStoreGlobalGeneric* instr) { 3199 void LCodeGen::DoStoreGlobalGeneric(LStoreGlobalGeneric* instr) {
3200 ASSERT(ToRegister(instr->context()).is(esi)); 3200 ASSERT(ToRegister(instr->context()).is(esi));
3201 ASSERT(ToRegister(instr->global_object()).is(edx)); 3201 ASSERT(ToRegister(instr->global_object()).is(edx));
3202 ASSERT(ToRegister(instr->value()).is(eax)); 3202 ASSERT(ToRegister(instr->value()).is(eax));
3203 3203
3204 __ mov(ecx, instr->name()); 3204 __ mov(ecx, instr->name());
3205 Handle<Code> ic = StoreIC::initialize_stub(isolate(), 3205 Handle<Code> ic = StoreIC::initialize_stub(isolate(),
3206 instr->strict_mode_flag(), 3206 instr->strict_mode_flag());
3207 CONTEXTUAL);
3208 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3207 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3209 } 3208 }
3210 3209
3211 3210
3212 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 3211 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
3213 Register context = ToRegister(instr->context()); 3212 Register context = ToRegister(instr->context());
3214 Register result = ToRegister(instr->result()); 3213 Register result = ToRegister(instr->result());
3215 __ mov(result, ContextOperand(context, instr->slot_index())); 3214 __ mov(result, ContextOperand(context, instr->slot_index()));
3216 3215
3217 if (instr->hydrogen()->RequiresHoleCheck()) { 3216 if (instr->hydrogen()->RequiresHoleCheck()) {
(...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after
4478 } 4477 }
4479 4478
4480 4479
4481 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { 4480 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) {
4482 ASSERT(ToRegister(instr->context()).is(esi)); 4481 ASSERT(ToRegister(instr->context()).is(esi));
4483 ASSERT(ToRegister(instr->object()).is(edx)); 4482 ASSERT(ToRegister(instr->object()).is(edx));
4484 ASSERT(ToRegister(instr->value()).is(eax)); 4483 ASSERT(ToRegister(instr->value()).is(eax));
4485 4484
4486 __ mov(ecx, instr->name()); 4485 __ mov(ecx, instr->name());
4487 Handle<Code> ic = StoreIC::initialize_stub(isolate(), 4486 Handle<Code> ic = StoreIC::initialize_stub(isolate(),
4488 instr->strict_mode_flag(), 4487 instr->strict_mode_flag());
4489 NOT_CONTEXTUAL);
4490 CallCode(ic, RelocInfo::CODE_TARGET, instr); 4488 CallCode(ic, RelocInfo::CODE_TARGET, instr);
4491 } 4489 }
4492 4490
4493 4491
4494 void LCodeGen::ApplyCheckIf(Condition cc, LBoundsCheck* check) { 4492 void LCodeGen::ApplyCheckIf(Condition cc, LBoundsCheck* check) {
4495 if (FLAG_debug_code && check->hydrogen()->skip_check()) { 4493 if (FLAG_debug_code && check->hydrogen()->skip_check()) {
4496 Label done; 4494 Label done;
4497 __ j(NegateCondition(cc), &done, Label::kNear); 4495 __ j(NegateCondition(cc), &done, Label::kNear);
4498 __ int3(); 4496 __ int3();
4499 __ bind(&done); 4497 __ bind(&done);
(...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after
6351 FixedArray::kHeaderSize - kPointerSize)); 6349 FixedArray::kHeaderSize - kPointerSize));
6352 __ bind(&done); 6350 __ bind(&done);
6353 } 6351 }
6354 6352
6355 6353
6356 #undef __ 6354 #undef __
6357 6355
6358 } } // namespace v8::internal 6356 } } // namespace v8::internal
6359 6357
6360 #endif // V8_TARGET_ARCH_IA32 6358 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/full-codegen.cc ('K') | « src/ia32/ic-ia32.cc ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698