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

Side by Side Diff: src/x64/codegen-x64.cc

Issue 159506: X64: Fix bug that showed up in mjsunit/invalid-lhs.js (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 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 | « no previous file | test/mjsunit/mjsunit.status » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 3710 matching lines...) Expand 10 before | Expand all | Expand 10 after
3721 if (var->is_global()) { 3721 if (var->is_global()) {
3722 LoadGlobal(); 3722 LoadGlobal();
3723 ref->set_type(Reference::NAMED); 3723 ref->set_type(Reference::NAMED);
3724 } else { 3724 } else {
3725 ASSERT(var->slot() != NULL); 3725 ASSERT(var->slot() != NULL);
3726 ref->set_type(Reference::SLOT); 3726 ref->set_type(Reference::SLOT);
3727 } 3727 }
3728 } else { 3728 } else {
3729 // Anything else is a runtime error. 3729 // Anything else is a runtime error.
3730 Load(e); 3730 Load(e);
3731 // frame_->CallRuntime(Runtime::kThrowReferenceError, 1); 3731 frame_->CallRuntime(Runtime::kThrowReferenceError, 1);
3732 } 3732 }
3733 3733
3734 in_spilled_code_ = was_in_spilled_code; 3734 in_spilled_code_ = was_in_spilled_code;
3735 } 3735 }
3736 3736
3737 3737
3738 void CodeGenerator::UnloadReference(Reference* ref) { 3738 void CodeGenerator::UnloadReference(Reference* ref) {
3739 // Pop a reference from the stack while preserving TOS. 3739 // Pop a reference from the stack while preserving TOS.
3740 Comment cmnt(masm_, "[ UnloadReference"); 3740 Comment cmnt(masm_, "[ UnloadReference");
3741 frame_->Nip(ref->size()); 3741 frame_->Nip(ref->size());
(...skipping 3201 matching lines...) Expand 10 before | Expand all | Expand 10 after
6943 int CompareStub::MinorKey() { 6943 int CompareStub::MinorKey() {
6944 // Encode the two parameters in a unique 16 bit value. 6944 // Encode the two parameters in a unique 16 bit value.
6945 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); 6945 ASSERT(static_cast<unsigned>(cc_) < (1 << 15));
6946 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); 6946 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0);
6947 } 6947 }
6948 6948
6949 6949
6950 #undef __ 6950 #undef __
6951 6951
6952 } } // namespace v8::internal 6952 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698