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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 230623003: Version 3.24.35.32 (merged r20501) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
Patch Set: Created 6 years, 8 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/version.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 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 } 929 }
930 } 930 }
931 result = EnforceNumberType(result, result_type); 931 result = EnforceNumberType(result, result_type);
932 } 932 }
933 933
934 // Reuse the double box of one of the operands if we are allowed to (i.e. 934 // Reuse the double box of one of the operands if we are allowed to (i.e.
935 // chained binops). 935 // chained binops).
936 if (state.CanReuseDoubleBox()) { 936 if (state.CanReuseDoubleBox()) {
937 HValue* operand = (state.mode() == OVERWRITE_LEFT) ? left : right; 937 HValue* operand = (state.mode() == OVERWRITE_LEFT) ? left : right;
938 IfBuilder if_heap_number(this); 938 IfBuilder if_heap_number(this);
939 if_heap_number.IfNot<HIsSmiAndBranch>(operand); 939 if_heap_number.If<HHasInstanceTypeAndBranch>(operand, HEAP_NUMBER_TYPE);
940 if_heap_number.Then(); 940 if_heap_number.Then();
941 Add<HStoreNamedField>(operand, HObjectAccess::ForHeapNumberValue(), result); 941 Add<HStoreNamedField>(operand, HObjectAccess::ForHeapNumberValue(), result);
942 Push(operand); 942 Push(operand);
943 if_heap_number.Else(); 943 if_heap_number.Else();
944 Push(result); 944 Push(result);
945 if_heap_number.End(); 945 if_heap_number.End();
946 result = Pop(); 946 result = Pop();
947 } 947 }
948 948
949 return result; 949 return result;
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 return BuildRegExpConstructResult(length, index, input); 1399 return BuildRegExpConstructResult(length, index, input);
1400 } 1400 }
1401 1401
1402 1402
1403 Handle<Code> RegExpConstructResultStub::GenerateCode(Isolate* isolate) { 1403 Handle<Code> RegExpConstructResultStub::GenerateCode(Isolate* isolate) {
1404 return DoGenerateCode(isolate, this); 1404 return DoGenerateCode(isolate, this);
1405 } 1405 }
1406 1406
1407 1407
1408 } } // namespace v8::internal 1408 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698