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

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

Issue 6596070: Fix several evaluation order sensitive GC-unsafe places. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 } 566 }
567 567
568 568
569 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { 569 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) {
570 int length = deoptimizations_.length(); 570 int length = deoptimizations_.length();
571 if (length == 0) return; 571 if (length == 0) return;
572 ASSERT(FLAG_deopt); 572 ASSERT(FLAG_deopt);
573 Handle<DeoptimizationInputData> data = 573 Handle<DeoptimizationInputData> data =
574 Factory::NewDeoptimizationInputData(length, TENURED); 574 Factory::NewDeoptimizationInputData(length, TENURED);
575 575
576 data->SetTranslationByteArray(*translations_.CreateByteArray()); 576 Handle<ByteArray> translations = translations_.CreateByteArray();
577 data->SetTranslationByteArray(*translations);
577 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 578 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
578 579
579 Handle<FixedArray> literals = 580 Handle<FixedArray> literals =
580 Factory::NewFixedArray(deoptimization_literals_.length(), TENURED); 581 Factory::NewFixedArray(deoptimization_literals_.length(), TENURED);
581 for (int i = 0; i < deoptimization_literals_.length(); i++) { 582 for (int i = 0; i < deoptimization_literals_.length(); i++) {
582 literals->set(i, *deoptimization_literals_[i]); 583 literals->set(i, *deoptimization_literals_[i]);
583 } 584 }
584 data->SetLiteralArray(*literals); 585 data->SetLiteralArray(*literals);
585 586
586 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id())); 587 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id()));
(...skipping 3261 matching lines...) Expand 10 before | Expand all | Expand 10 after
3848 ASSERT(!environment->HasBeenRegistered()); 3849 ASSERT(!environment->HasBeenRegistered());
3849 RegisterEnvironmentForDeoptimization(environment); 3850 RegisterEnvironmentForDeoptimization(environment);
3850 ASSERT(osr_pc_offset_ == -1); 3851 ASSERT(osr_pc_offset_ == -1);
3851 osr_pc_offset_ = masm()->pc_offset(); 3852 osr_pc_offset_ = masm()->pc_offset();
3852 } 3853 }
3853 3854
3854 3855
3855 #undef __ 3856 #undef __
3856 3857
3857 } } // namespace v8::internal 3858 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698