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/full-codegen.cc

Issue 256993003: Remove some remnants of MaybeObjects in objects.*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/factory.cc ('k') | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 feedback_vector_->set(i, *sentinel, SKIP_WRITE_BARRIER); 394 feedback_vector_->set(i, *sentinel, SKIP_WRITE_BARRIER);
395 } 395 }
396 } 396 }
397 397
398 398
399 void FullCodeGenerator::PopulateDeoptimizationData(Handle<Code> code) { 399 void FullCodeGenerator::PopulateDeoptimizationData(Handle<Code> code) {
400 // Fill in the deoptimization information. 400 // Fill in the deoptimization information.
401 ASSERT(info_->HasDeoptimizationSupport() || bailout_entries_.is_empty()); 401 ASSERT(info_->HasDeoptimizationSupport() || bailout_entries_.is_empty());
402 if (!info_->HasDeoptimizationSupport()) return; 402 if (!info_->HasDeoptimizationSupport()) return;
403 int length = bailout_entries_.length(); 403 int length = bailout_entries_.length();
404 Handle<DeoptimizationOutputData> data = isolate()->factory()-> 404 Handle<DeoptimizationOutputData> data =
405 NewDeoptimizationOutputData(length, TENURED); 405 DeoptimizationOutputData::New(isolate(), length, TENURED);
406 for (int i = 0; i < length; i++) { 406 for (int i = 0; i < length; i++) {
407 data->SetAstId(i, bailout_entries_[i].id); 407 data->SetAstId(i, bailout_entries_[i].id);
408 data->SetPcAndState(i, Smi::FromInt(bailout_entries_[i].pc_and_state)); 408 data->SetPcAndState(i, Smi::FromInt(bailout_entries_[i].pc_and_state));
409 } 409 }
410 code->set_deoptimization_data(*data); 410 code->set_deoptimization_data(*data);
411 } 411 }
412 412
413 413
414 void FullCodeGenerator::PopulateTypeFeedbackInfo(Handle<Code> code) { 414 void FullCodeGenerator::PopulateTypeFeedbackInfo(Handle<Code> code) {
415 Handle<TypeFeedbackInfo> info = isolate()->factory()->NewTypeFeedbackInfo(); 415 Handle<TypeFeedbackInfo> info = isolate()->factory()->NewTypeFeedbackInfo();
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 } 1718 }
1719 return true; 1719 return true;
1720 } 1720 }
1721 #endif // DEBUG 1721 #endif // DEBUG
1722 1722
1723 1723
1724 #undef __ 1724 #undef __
1725 1725
1726 1726
1727 } } // namespace v8::internal 1727 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698