| OLD | NEW |
| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 TypeFeedbackInfo::cast(code->type_feedback_info())->set_type_feedback_cells( | 438 TypeFeedbackInfo::cast(code->type_feedback_info())->set_type_feedback_cells( |
| 439 *cache); | 439 *cache); |
| 440 } | 440 } |
| 441 | 441 |
| 442 | 442 |
| 443 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { | 443 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { |
| 444 PrepareForBailoutForId(node->id(), state); | 444 PrepareForBailoutForId(node->id(), state); |
| 445 } | 445 } |
| 446 | 446 |
| 447 | 447 |
| 448 void FullCodeGenerator::CallLoadIC(ContextualMode mode, TypeFeedbackId id) { | 448 void FullCodeGenerator::CallLoadIC(ContextualMode contextual_mode, |
| 449 Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode); | 449 TypeFeedbackId id) { |
| 450 CallIC(ic, mode, id); | 450 ExtraICState extra_state = LoadIC::ComputeExtraICState(contextual_mode); |
| 451 Handle<Code> ic = LoadIC::initialize_stub(isolate(), extra_state); |
| 452 CallIC(ic, contextual_mode, id); |
| 451 } | 453 } |
| 452 | 454 |
| 453 | 455 |
| 454 void FullCodeGenerator::CallStoreIC(ContextualMode mode, TypeFeedbackId id) { | 456 void FullCodeGenerator::CallStoreIC(ContextualMode mode, TypeFeedbackId id) { |
| 455 Handle<Code> ic = StoreIC::initialize_stub(isolate(), strict_mode()); | 457 Handle<Code> ic = StoreIC::initialize_stub(isolate(), strict_mode()); |
| 456 CallIC(ic, mode, id); | 458 CallIC(ic, mode, id); |
| 457 } | 459 } |
| 458 | 460 |
| 459 | 461 |
| 460 void FullCodeGenerator::RecordJSReturnSite(Call* call) { | 462 void FullCodeGenerator::RecordJSReturnSite(Call* call) { |
| (...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1739 } | 1741 } |
| 1740 return true; | 1742 return true; |
| 1741 } | 1743 } |
| 1742 #endif // DEBUG | 1744 #endif // DEBUG |
| 1743 | 1745 |
| 1744 | 1746 |
| 1745 #undef __ | 1747 #undef __ |
| 1746 | 1748 |
| 1747 | 1749 |
| 1748 } } // namespace v8::internal | 1750 } } // namespace v8::internal |
| OLD | NEW |