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

Side by Side Diff: src/x64/lithium-codegen-x64.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/runtime.cc ('k') | no next file » | 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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 } 520 }
521 521
522 522
523 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { 523 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) {
524 int length = deoptimizations_.length(); 524 int length = deoptimizations_.length();
525 if (length == 0) return; 525 if (length == 0) return;
526 ASSERT(FLAG_deopt); 526 ASSERT(FLAG_deopt);
527 Handle<DeoptimizationInputData> data = 527 Handle<DeoptimizationInputData> data =
528 Factory::NewDeoptimizationInputData(length, TENURED); 528 Factory::NewDeoptimizationInputData(length, TENURED);
529 529
530 data->SetTranslationByteArray(*translations_.CreateByteArray()); 530 Handle<ByteArray> translations = translations_.CreateByteArray();
531 data->SetTranslationByteArray(*translations);
531 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); 532 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_));
532 533
533 Handle<FixedArray> literals = 534 Handle<FixedArray> literals =
534 Factory::NewFixedArray(deoptimization_literals_.length(), TENURED); 535 Factory::NewFixedArray(deoptimization_literals_.length(), TENURED);
535 for (int i = 0; i < deoptimization_literals_.length(); i++) { 536 for (int i = 0; i < deoptimization_literals_.length(); i++) {
536 literals->set(i, *deoptimization_literals_[i]); 537 literals->set(i, *deoptimization_literals_[i]);
537 } 538 }
538 data->SetLiteralArray(*literals); 539 data->SetLiteralArray(*literals);
539 540
540 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id())); 541 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id()));
(...skipping 3011 matching lines...) Expand 10 before | Expand all | Expand 10 after
3552 RegisterEnvironmentForDeoptimization(environment); 3553 RegisterEnvironmentForDeoptimization(environment);
3553 ASSERT(osr_pc_offset_ == -1); 3554 ASSERT(osr_pc_offset_ == -1);
3554 osr_pc_offset_ = masm()->pc_offset(); 3555 osr_pc_offset_ = masm()->pc_offset();
3555 } 3556 }
3556 3557
3557 #undef __ 3558 #undef __
3558 3559
3559 } } // namespace v8::internal 3560 } } // namespace v8::internal
3560 3561
3561 #endif // V8_TARGET_ARCH_X64 3562 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698