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

Side by Side Diff: src/mips64/full-codegen-mips64.cc

Issue 395503002: MIPS: Remove ASSERT since there are tons of different ASSIGN variants (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « src/mips/full-codegen-mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2483 __ Branch(&assign, ne, a3, Operand(a4)); 2483 __ Branch(&assign, ne, a3, Operand(a4));
2484 __ li(a3, Operand(var->name())); 2484 __ li(a3, Operand(var->name()));
2485 __ push(a3); 2485 __ push(a3);
2486 __ CallRuntime(Runtime::kThrowReferenceError, 1); 2486 __ CallRuntime(Runtime::kThrowReferenceError, 1);
2487 // Perform the assignment. 2487 // Perform the assignment.
2488 __ bind(&assign); 2488 __ bind(&assign);
2489 EmitStoreToStackLocalOrContextSlot(var, location); 2489 EmitStoreToStackLocalOrContextSlot(var, location);
2490 2490
2491 } else if (!var->is_const_mode() || op == Token::INIT_CONST) { 2491 } else if (!var->is_const_mode() || op == Token::INIT_CONST) {
2492 if (var->IsLookupSlot()) { 2492 if (var->IsLookupSlot()) {
2493 ASSERT(op == Token::ASSIGN || op == Token::INIT_VAR ||
2494 op == Token::ASSIGN_ADD);
2495 // Assignment to var. 2493 // Assignment to var.
2496 __ li(a4, Operand(var->name())); 2494 __ li(a4, Operand(var->name()));
2497 __ li(a3, Operand(Smi::FromInt(strict_mode()))); 2495 __ li(a3, Operand(Smi::FromInt(strict_mode())));
2498 // jssp[0] : mode. 2496 // jssp[0] : mode.
2499 // jssp[8] : name. 2497 // jssp[8] : name.
2500 // jssp[16] : context. 2498 // jssp[16] : context.
2501 // jssp[24] : value. 2499 // jssp[24] : value.
2502 __ Push(v0, cp, a4, a3); 2500 __ Push(v0, cp, a4, a3);
2503 __ CallRuntime(Runtime::kStoreLookupSlot, 4); 2501 __ CallRuntime(Runtime::kStoreLookupSlot, 4);
2504 } else { 2502 } else {
(...skipping 2352 matching lines...) Expand 10 before | Expand all | Expand 10 after
4857 Assembler::target_address_at(pc_immediate_load_address)) == 4855 Assembler::target_address_at(pc_immediate_load_address)) ==
4858 reinterpret_cast<uint64_t>( 4856 reinterpret_cast<uint64_t>(
4859 isolate->builtins()->OsrAfterStackCheck()->entry())); 4857 isolate->builtins()->OsrAfterStackCheck()->entry()));
4860 return OSR_AFTER_STACK_CHECK; 4858 return OSR_AFTER_STACK_CHECK;
4861 } 4859 }
4862 4860
4863 4861
4864 } } // namespace v8::internal 4862 } } // namespace v8::internal
4865 4863
4866 #endif // V8_TARGET_ARCH_MIPS64 4864 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698