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

Side by Side Diff: src/x64/ic-x64.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 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 __ pop(rbx); 1466 __ pop(rbx);
1467 __ push(rdx); // receiver 1467 __ push(rdx); // receiver
1468 __ push(rax); // name 1468 __ push(rax); // name
1469 __ push(rbx); // return address 1469 __ push(rbx); // return address
1470 1470
1471 // Perform tail call to the entry. 1471 // Perform tail call to the entry.
1472 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); 1472 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1);
1473 } 1473 }
1474 1474
1475 1475
1476 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { 1476 void StoreIC::GenerateMegamorphic(MacroAssembler* masm,
1477 Code::ExtraICState extra_ic_state) {
1477 // ----------- S t a t e ------------- 1478 // ----------- S t a t e -------------
1478 // -- rax : value 1479 // -- rax : value
1479 // -- rcx : name 1480 // -- rcx : name
1480 // -- rdx : receiver 1481 // -- rdx : receiver
1481 // -- rsp[0] : return address 1482 // -- rsp[0] : return address
1482 // ----------------------------------- 1483 // -----------------------------------
1483 1484
1484 // Get the receiver from the stack and probe the stub cache. 1485 // Get the receiver from the stack and probe the stub cache.
1485 Code::Flags flags = Code::ComputeFlags(Code::STORE_IC, 1486 Code::Flags flags = Code::ComputeFlags(Code::STORE_IC,
1486 NOT_IN_LOOP, 1487 NOT_IN_LOOP,
1487 MONOMORPHIC); 1488 MONOMORPHIC,
1489 extra_ic_state);
1488 StubCache::GenerateProbe(masm, flags, rdx, rcx, rbx, no_reg); 1490 StubCache::GenerateProbe(masm, flags, rdx, rcx, rbx, no_reg);
1489 1491
1490 // Cache miss: Jump to runtime. 1492 // Cache miss: Jump to runtime.
1491 GenerateMiss(masm); 1493 GenerateMiss(masm);
1492 } 1494 }
1493 1495
1494 1496
1495 void StoreIC::GenerateMiss(MacroAssembler* masm) { 1497 void StoreIC::GenerateMiss(MacroAssembler* masm) {
1496 // ----------- S t a t e ------------- 1498 // ----------- S t a t e -------------
1497 // -- rax : value 1499 // -- rax : value
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 Condition cc = *jmp_address == Assembler::kJncShortOpcode 1745 Condition cc = *jmp_address == Assembler::kJncShortOpcode
1744 ? not_zero 1746 ? not_zero
1745 : zero; 1747 : zero;
1746 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1748 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1747 } 1749 }
1748 1750
1749 1751
1750 } } // namespace v8::internal 1752 } } // namespace v8::internal
1751 1753
1752 #endif // V8_TARGET_ARCH_X64 1754 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/stub-cache.h ('K') | « src/x64/full-codegen-x64.cc ('k') | src/x64/virtual-frame-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698