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

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

Issue 999763003: MIPS: Simplify pending message script 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 | « no previous file | src/mips64/full-codegen-mips64.cc » ('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 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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 5318 matching lines...) Expand 10 before | Expand all | Expand 10 after
5329 __ li(at, Operand(pending_message_obj)); 5329 __ li(at, Operand(pending_message_obj));
5330 __ lw(a1, MemOperand(at)); 5330 __ lw(a1, MemOperand(at));
5331 __ push(a1); 5331 __ push(a1);
5332 5332
5333 ExternalReference has_pending_message = 5333 ExternalReference has_pending_message =
5334 ExternalReference::address_of_has_pending_message(isolate()); 5334 ExternalReference::address_of_has_pending_message(isolate());
5335 __ li(at, Operand(has_pending_message)); 5335 __ li(at, Operand(has_pending_message));
5336 __ lw(a1, MemOperand(at)); 5336 __ lw(a1, MemOperand(at));
5337 __ SmiTag(a1); 5337 __ SmiTag(a1);
5338 __ push(a1); 5338 __ push(a1);
5339
5340 ExternalReference pending_message_script =
5341 ExternalReference::address_of_pending_message_script(isolate());
5342 __ li(at, Operand(pending_message_script));
5343 __ lw(a1, MemOperand(at));
5344 __ push(a1);
5345 } 5339 }
5346 5340
5347 5341
5348 void FullCodeGenerator::ExitFinallyBlock() { 5342 void FullCodeGenerator::ExitFinallyBlock() {
5349 DCHECK(!result_register().is(a1)); 5343 DCHECK(!result_register().is(a1));
5350 // Restore pending message from stack. 5344 // Restore pending message from stack.
5351 __ pop(a1); 5345 __ pop(a1);
5352 ExternalReference pending_message_script =
5353 ExternalReference::address_of_pending_message_script(isolate());
5354 __ li(at, Operand(pending_message_script));
5355 __ sw(a1, MemOperand(at));
5356
5357 __ pop(a1);
5358 __ SmiUntag(a1); 5346 __ SmiUntag(a1);
5359 ExternalReference has_pending_message = 5347 ExternalReference has_pending_message =
5360 ExternalReference::address_of_has_pending_message(isolate()); 5348 ExternalReference::address_of_has_pending_message(isolate());
5361 __ li(at, Operand(has_pending_message)); 5349 __ li(at, Operand(has_pending_message));
5362 __ sw(a1, MemOperand(at)); 5350 __ sw(a1, MemOperand(at));
5363 5351
5364 __ pop(a1); 5352 __ pop(a1);
5365 ExternalReference pending_message_obj = 5353 ExternalReference pending_message_obj =
5366 ExternalReference::address_of_pending_message_obj(isolate()); 5354 ExternalReference::address_of_pending_message_obj(isolate());
5367 __ li(at, Operand(pending_message_obj)); 5355 __ li(at, Operand(pending_message_obj));
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
5482 Assembler::target_address_at(pc_immediate_load_address)) == 5470 Assembler::target_address_at(pc_immediate_load_address)) ==
5483 reinterpret_cast<uint32_t>( 5471 reinterpret_cast<uint32_t>(
5484 isolate->builtins()->OsrAfterStackCheck()->entry())); 5472 isolate->builtins()->OsrAfterStackCheck()->entry()));
5485 return OSR_AFTER_STACK_CHECK; 5473 return OSR_AFTER_STACK_CHECK;
5486 } 5474 }
5487 5475
5488 5476
5489 } } // namespace v8::internal 5477 } } // namespace v8::internal
5490 5478
5491 #endif // V8_TARGET_ARCH_MIPS 5479 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698