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

Side by Side Diff: src/runtime.js

Issue 1125183008: [es6] Spread in array literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup Created 5 years, 7 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
« no previous file with comments | « src/preparser.h ('k') | src/runtime/runtime.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This files contains runtime support implemented in JavaScript. 5 // This files contains runtime support implemented in JavaScript.
6 6
7 // CAUTION: Some of the functions specified in this file are called 7 // CAUTION: Some of the functions specified in this file are called
8 // directly from compiled code. These are the functions with names in 8 // directly from compiled code. These are the functions with names in
9 // ALL CAPS. The compiled code passes the first argument in 'this'. 9 // ALL CAPS. The compiled code passes the first argument in 'this'.
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 var SHR; 47 var SHR;
48 var SHR_STRONG; 48 var SHR_STRONG;
49 var DELETE; 49 var DELETE;
50 var IN; 50 var IN;
51 var INSTANCE_OF; 51 var INSTANCE_OF;
52 var FILTER_KEY; 52 var FILTER_KEY;
53 var CALL_NON_FUNCTION; 53 var CALL_NON_FUNCTION;
54 var CALL_NON_FUNCTION_AS_CONSTRUCTOR; 54 var CALL_NON_FUNCTION_AS_CONSTRUCTOR;
55 var CALL_FUNCTION_PROXY; 55 var CALL_FUNCTION_PROXY;
56 var CALL_FUNCTION_PROXY_AS_CONSTRUCTOR; 56 var CALL_FUNCTION_PROXY_AS_CONSTRUCTOR;
57 var CONCAT_ITERABLE_TO_ARRAY;
57 var APPLY_PREPARE; 58 var APPLY_PREPARE;
58 var REFLECT_APPLY_PREPARE; 59 var REFLECT_APPLY_PREPARE;
59 var REFLECT_CONSTRUCT_PREPARE; 60 var REFLECT_CONSTRUCT_PREPARE;
60 var STACK_OVERFLOW; 61 var STACK_OVERFLOW;
61 var TO_OBJECT; 62 var TO_OBJECT;
62 var TO_NUMBER; 63 var TO_NUMBER;
63 var TO_STRING; 64 var TO_STRING;
64 var TO_NAME; 65 var TO_NAME;
65 66
66 var StringLengthTF_STUB; 67 var StringLengthTF_STUB;
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 // big enough, but sanity check the value to avoid overflow when 720 // big enough, but sanity check the value to avoid overflow when
720 // multiplying with pointer size. 721 // multiplying with pointer size.
721 if (length > kSafeArgumentsLength) throw %MakeRangeError(kStackOverflow); 722 if (length > kSafeArgumentsLength) throw %MakeRangeError(kStackOverflow);
722 723
723 // Return the length which is the number of arguments to copy to the 724 // Return the length which is the number of arguments to copy to the
724 // stack. It is guaranteed to be a small integer at this point. 725 // stack. It is guaranteed to be a small integer at this point.
725 return length; 726 return length;
726 } 727 }
727 728
728 729
730 CONCAT_ITERABLE_TO_ARRAY = function CONCAT_ITERABLE_TO_ARRAY(iterable) {
731 return %$concatIterableToArray(this, iterable);
732 };
733
734
729 STACK_OVERFLOW = function STACK_OVERFLOW(length) { 735 STACK_OVERFLOW = function STACK_OVERFLOW(length) {
730 throw %MakeRangeError(kStackOverflow); 736 throw %MakeRangeError(kStackOverflow);
731 } 737 }
732 738
733 739
734 // Convert the receiver to an object - forward to ToObject. 740 // Convert the receiver to an object - forward to ToObject.
735 TO_OBJECT = function TO_OBJECT() { 741 TO_OBJECT = function TO_OBJECT() {
736 return %$toObject(this); 742 return %$toObject(this);
737 } 743 }
738 744
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 $toLength = ToLength; 1038 $toLength = ToLength;
1033 $toName = ToName; 1039 $toName = ToName;
1034 $toNumber = ToNumber; 1040 $toNumber = ToNumber;
1035 $toObject = ToObject; 1041 $toObject = ToObject;
1036 $toPositiveInteger = ToPositiveInteger; 1042 $toPositiveInteger = ToPositiveInteger;
1037 $toPrimitive = ToPrimitive; 1043 $toPrimitive = ToPrimitive;
1038 $toString = ToString; 1044 $toString = ToString;
1039 $toUint32 = ToUint32; 1045 $toUint32 = ToUint32;
1040 1046
1041 }) 1047 })
OLDNEW
« no previous file with comments | « src/preparser.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698