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

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

Issue 9032005: MIPS: Avoid embedding new space objects into code objects in the lithium gap resolver. (Closed)
Patch Set: Rebased on r10334. Created 8 years, 11 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/lithium-codegen-mips.h ('k') | src/mips/lithium-gap-resolver-mips.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 } else if (op->IsStackSlot() || op->IsArgument()) { 346 } else if (op->IsStackSlot() || op->IsArgument()) {
347 MemOperand mem_op = ToMemOperand(op); 347 MemOperand mem_op = ToMemOperand(op);
348 __ ldc1(dbl_scratch, mem_op); 348 __ ldc1(dbl_scratch, mem_op);
349 return dbl_scratch; 349 return dbl_scratch;
350 } 350 }
351 UNREACHABLE(); 351 UNREACHABLE();
352 return dbl_scratch; 352 return dbl_scratch;
353 } 353 }
354 354
355 355
356 Handle<Object> LCodeGen::ToHandle(LConstantOperand* op) const {
357 Handle<Object> literal = chunk_->LookupLiteral(op);
358 ASSERT(chunk_->LookupLiteralRepresentation(op).IsTagged());
359 return literal;
360 }
361
362
363 bool LCodeGen::IsInteger32(LConstantOperand* op) const {
364 return chunk_->LookupLiteralRepresentation(op).IsInteger32();
365 }
366
367
356 int LCodeGen::ToInteger32(LConstantOperand* op) const { 368 int LCodeGen::ToInteger32(LConstantOperand* op) const {
357 Handle<Object> value = chunk_->LookupLiteral(op); 369 Handle<Object> value = chunk_->LookupLiteral(op);
358 ASSERT(chunk_->LookupLiteralRepresentation(op).IsInteger32()); 370 ASSERT(chunk_->LookupLiteralRepresentation(op).IsInteger32());
359 ASSERT(static_cast<double>(static_cast<int32_t>(value->Number())) == 371 ASSERT(static_cast<double>(static_cast<int32_t>(value->Number())) ==
360 value->Number()); 372 value->Number());
361 return static_cast<int32_t>(value->Number()); 373 return static_cast<int32_t>(value->Number());
362 } 374 }
363 375
364 376
365 double LCodeGen::ToDouble(LConstantOperand* op) const { 377 double LCodeGen::ToDouble(LConstantOperand* op) const {
(...skipping 4307 matching lines...) Expand 10 before | Expand all | Expand 10 after
4673 ASSERT(!environment->HasBeenRegistered()); 4685 ASSERT(!environment->HasBeenRegistered());
4674 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); 4686 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt);
4675 ASSERT(osr_pc_offset_ == -1); 4687 ASSERT(osr_pc_offset_ == -1);
4676 osr_pc_offset_ = masm()->pc_offset(); 4688 osr_pc_offset_ = masm()->pc_offset();
4677 } 4689 }
4678 4690
4679 4691
4680 #undef __ 4692 #undef __
4681 4693
4682 } } // namespace v8::internal 4694 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.h ('k') | src/mips/lithium-gap-resolver-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698