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

Side by Side Diff: src/hydrogen.h

Issue 163403003: Return on the polymorphic hard deopt case to ensure we don't polute phis with fake type information. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | « no previous file | src/hydrogen.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 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 Maybe<int> fixed_right_arg, 1399 Maybe<int> fixed_right_arg,
1400 HAllocationMode allocation_mode); 1400 HAllocationMode allocation_mode);
1401 1401
1402 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); 1402 HLoadNamedField* AddLoadFixedArrayLength(HValue *object);
1403 1403
1404 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); 1404 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin);
1405 1405
1406 HValue* EnforceNumberType(HValue* number, Type* expected); 1406 HValue* EnforceNumberType(HValue* number, Type* expected);
1407 HValue* TruncateToNumber(HValue* value, Type** expected); 1407 HValue* TruncateToNumber(HValue* value, Type** expected);
1408 1408
1409 void FinishExitWithHardDeoptimization(const char* reason, 1409 void FinishExitWithHardDeoptimization(const char* reason);
1410 HBasicBlock* continuation);
1411 1410
1412 void AddIncrementCounter(StatsCounter* counter); 1411 void AddIncrementCounter(StatsCounter* counter);
1413 1412
1414 class IfBuilder V8_FINAL { 1413 class IfBuilder V8_FINAL {
1415 public: 1414 public:
1416 explicit IfBuilder(HGraphBuilder* builder); 1415 explicit IfBuilder(HGraphBuilder* builder);
1417 IfBuilder(HGraphBuilder* builder, 1416 IfBuilder(HGraphBuilder* builder,
1418 HIfContinuation* continuation); 1417 HIfContinuation* continuation);
1419 1418
1420 ~IfBuilder() { 1419 ~IfBuilder() {
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1791 private: 1790 private:
1792 HGraphBuilder(); 1791 HGraphBuilder();
1793 1792
1794 HValue* BuildUncheckedDictionaryElementLoadHelper( 1793 HValue* BuildUncheckedDictionaryElementLoadHelper(
1795 HValue* elements, 1794 HValue* elements,
1796 HValue* key, 1795 HValue* key,
1797 HValue* hash, 1796 HValue* hash,
1798 HValue* mask, 1797 HValue* mask,
1799 int current_probe); 1798 int current_probe);
1800 1799
1801 void PadEnvironmentForContinuation(HBasicBlock* from,
1802 HBasicBlock* continuation);
1803
1804 template <class I> 1800 template <class I>
1805 I* AddInstructionTyped(I* instr) { 1801 I* AddInstructionTyped(I* instr) {
1806 return I::cast(AddInstruction(instr)); 1802 return I::cast(AddInstruction(instr));
1807 } 1803 }
1808 1804
1809 CompilationInfo* info_; 1805 CompilationInfo* info_;
1810 HGraph* graph_; 1806 HGraph* graph_;
1811 HBasicBlock* current_block_; 1807 HBasicBlock* current_block_;
1812 int position_; 1808 int position_;
1813 }; 1809 };
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 } 2735 }
2740 2736
2741 private: 2737 private:
2742 HGraphBuilder* builder_; 2738 HGraphBuilder* builder_;
2743 }; 2739 };
2744 2740
2745 2741
2746 } } // namespace v8::internal 2742 } } // namespace v8::internal
2747 2743
2748 #endif // V8_HYDROGEN_H_ 2744 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698