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

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

Issue 1004623002: MIPS: Simplify pending message object handling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
« 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 5313 matching lines...) Expand 10 before | Expand all | Expand 10 after
5324 5324
5325 // Store result register while executing finally block. 5325 // Store result register while executing finally block.
5326 __ push(a1); 5326 __ push(a1);
5327 5327
5328 // Store pending message while executing finally block. 5328 // Store pending message while executing finally block.
5329 ExternalReference pending_message_obj = 5329 ExternalReference pending_message_obj =
5330 ExternalReference::address_of_pending_message_obj(isolate()); 5330 ExternalReference::address_of_pending_message_obj(isolate());
5331 __ li(at, Operand(pending_message_obj)); 5331 __ li(at, Operand(pending_message_obj));
5332 __ ld(a1, MemOperand(at)); 5332 __ ld(a1, MemOperand(at));
5333 __ push(a1); 5333 __ push(a1);
5334
5335 ExternalReference has_pending_message =
5336 ExternalReference::address_of_has_pending_message(isolate());
5337 __ li(at, Operand(has_pending_message));
5338 __ ld(a1, MemOperand(at));
5339 __ SmiTag(a1);
5340 __ push(a1);
5341 } 5334 }
5342 5335
5343 5336
5344 void FullCodeGenerator::ExitFinallyBlock() { 5337 void FullCodeGenerator::ExitFinallyBlock() {
5345 DCHECK(!result_register().is(a1)); 5338 DCHECK(!result_register().is(a1));
5346 // Restore pending message from stack. 5339 // Restore pending message from stack.
5347 __ pop(a1); 5340 __ pop(a1);
5348 __ SmiUntag(a1);
5349 ExternalReference has_pending_message =
5350 ExternalReference::address_of_has_pending_message(isolate());
5351 __ li(at, Operand(has_pending_message));
5352 __ sd(a1, MemOperand(at));
5353
5354 __ pop(a1);
5355 ExternalReference pending_message_obj = 5341 ExternalReference pending_message_obj =
5356 ExternalReference::address_of_pending_message_obj(isolate()); 5342 ExternalReference::address_of_pending_message_obj(isolate());
5357 __ li(at, Operand(pending_message_obj)); 5343 __ li(at, Operand(pending_message_obj));
5358 __ sd(a1, MemOperand(at)); 5344 __ sd(a1, MemOperand(at));
5359 5345
5360 // Restore result register from stack. 5346 // Restore result register from stack.
5361 __ pop(a1); 5347 __ pop(a1);
5362 5348
5363 // Uncook return address and return. 5349 // Uncook return address and return.
5364 __ pop(result_register()); 5350 __ pop(result_register());
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
5476 Assembler::target_address_at(pc_immediate_load_address)) == 5462 Assembler::target_address_at(pc_immediate_load_address)) ==
5477 reinterpret_cast<uint64_t>( 5463 reinterpret_cast<uint64_t>(
5478 isolate->builtins()->OsrAfterStackCheck()->entry())); 5464 isolate->builtins()->OsrAfterStackCheck()->entry()));
5479 return OSR_AFTER_STACK_CHECK; 5465 return OSR_AFTER_STACK_CHECK;
5480 } 5466 }
5481 5467
5482 5468
5483 } } // namespace v8::internal 5469 } } // namespace v8::internal
5484 5470
5485 #endif // V8_TARGET_ARCH_MIPS64 5471 #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