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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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 | « src/arm/lithium-codegen-arm.cc ('k') | src/runtime.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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 } 581 }
582 582
583 583
584 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { 584 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) {
585 int length = deoptimizations_.length(); 585 int length = deoptimizations_.length();
586 if (length == 0) return; 586 if (length == 0) return;
587 ASSERT(FLAG_deopt); 587 ASSERT(FLAG_deopt);
588 Handle<DeoptimizationInputData> data = 588 Handle<DeoptimizationInputData> data =
589 Factory::NewDeoptimizationInputData(length, TENURED); 589 Factory::NewDeoptimizationInputData(length, TENURED);
590 590
591 data->SetTranslationByteArray(*translations_.CreateByteArray()); 591 Handle<ByteArray> translations = translations_.CreateByteArray();
592 data->SetTranslationByteArray(*translations);
592 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 593 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
593 594
594 Handle<FixedArray> literals = 595 Handle<FixedArray> literals =
595 Factory::NewFixedArray(deoptimization_literals_.length(), TENURED); 596 Factory::NewFixedArray(deoptimization_literals_.length(), TENURED);
596 for (int i = 0; i < deoptimization_literals_.length(); i++) { 597 for (int i = 0; i < deoptimization_literals_.length(); i++) {
597 literals->set(i, *deoptimization_literals_[i]); 598 literals->set(i, *deoptimization_literals_[i]);
598 } 599 }
599 data->SetLiteralArray(*literals); 600 data->SetLiteralArray(*literals);
600 601
601 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id())); 602 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id()));
(...skipping 3269 matching lines...) Expand 10 before | Expand all | Expand 10 after
3871 ASSERT(osr_pc_offset_ == -1); 3872 ASSERT(osr_pc_offset_ == -1);
3872 osr_pc_offset_ = masm()->pc_offset(); 3873 osr_pc_offset_ = masm()->pc_offset();
3873 } 3874 }
3874 3875
3875 3876
3876 #undef __ 3877 #undef __
3877 3878
3878 } } // namespace v8::internal 3879 } } // namespace v8::internal
3879 3880
3880 #endif // V8_TARGET_ARCH_IA32 3881 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698