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

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

Issue 1150293002: Do not leak message object beyond try-catch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: platform ports and turbofan Created 5 years, 7 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
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 5362 matching lines...) Expand 10 before | Expand all | Expand 10 after
5373 5373
5374 // Uncook return address and return. 5374 // Uncook return address and return.
5375 __ pop(result_register()); 5375 __ pop(result_register());
5376 5376
5377 __ SmiUntag(a1); 5377 __ SmiUntag(a1);
5378 __ Daddu(at, a1, Operand(masm_->CodeObject())); 5378 __ Daddu(at, a1, Operand(masm_->CodeObject()));
5379 __ Jump(at); 5379 __ Jump(at);
5380 } 5380 }
5381 5381
5382 5382
5383 void FullCodeGenerator::EnterCatchBlock() {
5384 DCHECK(!result_register().is(a1));
5385 ExternalReference pending_message_obj =
5386 ExternalReference::address_of_pending_message_obj(isolate());
5387 __ LoadRoot(a1, Heap::kTheHoleValueRootIndex);
5388 __ li(at, Operand(pending_message_obj));
5389 __ sd(a1, MemOperand(at));
5390 }
5391
5392
5383 #undef __ 5393 #undef __
5384 5394
5385 5395
5386 void BackEdgeTable::PatchAt(Code* unoptimized_code, 5396 void BackEdgeTable::PatchAt(Code* unoptimized_code,
5387 Address pc, 5397 Address pc,
5388 BackEdgeState target_state, 5398 BackEdgeState target_state,
5389 Code* replacement_code) { 5399 Code* replacement_code) {
5390 static const int kInstrSize = Assembler::kInstrSize; 5400 static const int kInstrSize = Assembler::kInstrSize;
5391 Address branch_address = pc - 8 * kInstrSize; 5401 Address branch_address = pc - 8 * kInstrSize;
5392 CodePatcher patcher(branch_address, 1); 5402 CodePatcher patcher(branch_address, 1);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
5459 Assembler::target_address_at(pc_immediate_load_address)) == 5469 Assembler::target_address_at(pc_immediate_load_address)) ==
5460 reinterpret_cast<uint64_t>( 5470 reinterpret_cast<uint64_t>(
5461 isolate->builtins()->OsrAfterStackCheck()->entry())); 5471 isolate->builtins()->OsrAfterStackCheck()->entry()));
5462 return OSR_AFTER_STACK_CHECK; 5472 return OSR_AFTER_STACK_CHECK;
5463 } 5473 }
5464 5474
5465 5475
5466 } } // namespace v8::internal 5476 } } // namespace v8::internal
5467 5477
5468 #endif // V8_TARGET_ARCH_MIPS64 5478 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698