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

Side by Side Diff: src/full-codegen.cc

Issue 19846005: Merged r15782 into 3.18 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.18
Patch Set: Created 7 years, 5 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/full-codegen.h ('k') | src/objects.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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 // The back edge table consists of a length (in number of entries) 366 // The back edge table consists of a length (in number of entries)
367 // field, and then a sequence of entries. Each entry is a pair of AST id 367 // field, and then a sequence of entries. Each entry is a pair of AST id
368 // and code-relative pc offset. 368 // and code-relative pc offset.
369 masm()->Align(kIntSize); 369 masm()->Align(kIntSize);
370 unsigned offset = masm()->pc_offset(); 370 unsigned offset = masm()->pc_offset();
371 unsigned length = back_edges_.length(); 371 unsigned length = back_edges_.length();
372 __ dd(length); 372 __ dd(length);
373 for (unsigned i = 0; i < length; ++i) { 373 for (unsigned i = 0; i < length; ++i) {
374 __ dd(back_edges_[i].id.ToInt()); 374 __ dd(back_edges_[i].id.ToInt());
375 __ dd(back_edges_[i].pc); 375 __ dd(back_edges_[i].pc);
376 __ db(back_edges_[i].loop_depth); 376 __ dd(back_edges_[i].loop_depth);
377 } 377 }
378 return offset; 378 return offset;
379 } 379 }
380 380
381 381
382 void FullCodeGenerator::PopulateDeoptimizationData(Handle<Code> code) { 382 void FullCodeGenerator::PopulateDeoptimizationData(Handle<Code> code) {
383 // Fill in the deoptimization information. 383 // Fill in the deoptimization information.
384 ASSERT(info_->HasDeoptimizationSupport() || bailout_entries_.is_empty()); 384 ASSERT(info_->HasDeoptimizationSupport() || bailout_entries_.is_empty());
385 if (!info_->HasDeoptimizationSupport()) return; 385 if (!info_->HasDeoptimizationSupport()) return;
386 int length = bailout_entries_.length(); 386 int length = bailout_entries_.length();
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1603 } 1603 }
1604 1604
1605 return false; 1605 return false;
1606 } 1606 }
1607 1607
1608 1608
1609 #undef __ 1609 #undef __
1610 1610
1611 1611
1612 } } // namespace v8::internal 1612 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698