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

Side by Side Diff: src/ia32/ic-ia32.cc

Issue 6474026: Strict mode assignment to undefined reference. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix presubmit. Created 9 years, 10 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1481 __ pop(ebx); 1481 __ pop(ebx);
1482 __ push(edx); // receiver 1482 __ push(edx); // receiver
1483 __ push(eax); // name 1483 __ push(eax); // name
1484 __ push(ebx); // return address 1484 __ push(ebx); // return address
1485 1485
1486 // Perform tail call to the entry. 1486 // Perform tail call to the entry.
1487 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); 1487 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1);
1488 } 1488 }
1489 1489
1490 1490
1491 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { 1491 void StoreIC::GenerateMegamorphic(MacroAssembler* masm,
1492 Code::ExtraICState extra_ic_state) {
1492 // ----------- S t a t e ------------- 1493 // ----------- S t a t e -------------
1493 // -- eax : value 1494 // -- eax : value
1494 // -- ecx : name 1495 // -- ecx : name
1495 // -- edx : receiver 1496 // -- edx : receiver
1496 // -- esp[0] : return address 1497 // -- esp[0] : return address
1497 // ----------------------------------- 1498 // -----------------------------------
1498 1499
1499 Code::Flags flags = Code::ComputeFlags(Code::STORE_IC, 1500 Code::Flags flags = Code::ComputeFlags(Code::STORE_IC,
1500 NOT_IN_LOOP, 1501 NOT_IN_LOOP,
1501 MONOMORPHIC); 1502 MONOMORPHIC,
1503 extra_ic_state);
1502 StubCache::GenerateProbe(masm, flags, edx, ecx, ebx, no_reg); 1504 StubCache::GenerateProbe(masm, flags, edx, ecx, ebx, no_reg);
1503 1505
1504 // Cache miss: Jump to runtime. 1506 // Cache miss: Jump to runtime.
1505 GenerateMiss(masm); 1507 GenerateMiss(masm);
1506 } 1508 }
1507 1509
1508 1510
1509 void StoreIC::GenerateMiss(MacroAssembler* masm) { 1511 void StoreIC::GenerateMiss(MacroAssembler* masm) {
1510 // ----------- S t a t e ------------- 1512 // ----------- S t a t e -------------
1511 // -- eax : value 1513 // -- eax : value
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 Condition cc = *jmp_address == Assembler::kJncShortOpcode 1771 Condition cc = *jmp_address == Assembler::kJncShortOpcode
1770 ? not_zero 1772 ? not_zero
1771 : zero; 1773 : zero;
1772 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1774 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1773 } 1775 }
1774 1776
1775 1777
1776 } } // namespace v8::internal 1778 } } // namespace v8::internal
1777 1779
1778 #endif // V8_TARGET_ARCH_IA32 1780 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/virtual-frame-ia32.h » ('j') | src/stub-cache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698