OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |