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

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

Issue 96083005: Remove Reloc::Mode CODE_TARGET_CONTEXT (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 7 years 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/ia32/full-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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 isolate()->factory()->NewFixedArray(array_size, TENURED)); 429 isolate()->factory()->NewFixedArray(array_size, TENURED));
430 for (int i = 0; i < length; i++) { 430 for (int i = 0; i < length; i++) {
431 cache->SetAstId(i, type_feedback_cells_[i].ast_id); 431 cache->SetAstId(i, type_feedback_cells_[i].ast_id);
432 cache->SetCell(i, *type_feedback_cells_[i].cell); 432 cache->SetCell(i, *type_feedback_cells_[i].cell);
433 } 433 }
434 TypeFeedbackInfo::cast(code->type_feedback_info())->set_type_feedback_cells( 434 TypeFeedbackInfo::cast(code->type_feedback_info())->set_type_feedback_cells(
435 *cache); 435 *cache);
436 } 436 }
437 437
438 438
439
440 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { 439 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) {
441 PrepareForBailoutForId(node->id(), state); 440 PrepareForBailoutForId(node->id(), state);
442 } 441 }
443 442
444 443
444 void FullCodeGenerator::CallLoadIC(ContextualMode mode, TypeFeedbackId id) {
445 Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode);
446 CallIC(ic, mode, id);
447 }
448
449
450 void FullCodeGenerator::CallStoreIC(ContextualMode mode, TypeFeedbackId id) {
451 Handle<Code> ic = StoreIC::initialize_stub(isolate(), strict_mode(), mode);
452 CallIC(ic, mode, id);
453 }
454
455
445 void FullCodeGenerator::RecordJSReturnSite(Call* call) { 456 void FullCodeGenerator::RecordJSReturnSite(Call* call) {
446 // We record the offset of the function return so we can rebuild the frame 457 // We record the offset of the function return so we can rebuild the frame
447 // if the function was inlined, i.e., this is the return address in the 458 // if the function was inlined, i.e., this is the return address in the
448 // inlined function's frame. 459 // inlined function's frame.
449 // 460 //
450 // The state is ignored. We defensively set it to TOS_REG, which is the 461 // The state is ignored. We defensively set it to TOS_REG, which is the
451 // real state of the unoptimized code at the return site. 462 // real state of the unoptimized code at the return site.
452 PrepareForBailoutForId(call->ReturnId(), TOS_REG); 463 PrepareForBailoutForId(call->ReturnId(), TOS_REG);
453 #ifdef DEBUG 464 #ifdef DEBUG
454 // In debug builds, mark the return so we can verify that this function 465 // In debug builds, mark the return so we can verify that this function
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1739 } 1750 }
1740 return true; 1751 return true;
1741 } 1752 }
1742 #endif // DEBUG 1753 #endif // DEBUG
1743 1754
1744 1755
1745 #undef __ 1756 #undef __
1746 1757
1747 1758
1748 } } // namespace v8::internal 1759 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698