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

Side by Side Diff: src/js/runtime.js

Issue 1592713002: Clean up dead code after spread desugaring (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix bug that visited dead AST node in for/of Created 4 years, 11 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/interpreter/bytecode-generator.cc ('k') | no next file » | 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 18 matching lines...) Expand all
29 MakeTypeError = from.MakeTypeError; 29 MakeTypeError = from.MakeTypeError;
30 speciesSymbol = from.species_symbol; 30 speciesSymbol = from.species_symbol;
31 }); 31 });
32 32
33 utils.ImportFromExperimental(function(from) { 33 utils.ImportFromExperimental(function(from) {
34 FLAG_harmony_species = from.FLAG_harmony_species; 34 FLAG_harmony_species = from.FLAG_harmony_species;
35 }); 35 });
36 36
37 // ---------------------------------------------------------------------------- 37 // ----------------------------------------------------------------------------
38 38
39 /* -----------------------------
40 - - - H e l p e r s - - -
41 -----------------------------
42 */
43
44 function CONCAT_ITERABLE_TO_ARRAY(iterable) {
45 return %concat_iterable_to_array(this, iterable);
46 };
47
48
49 /* ------------------------------------- 39 /* -------------------------------------
50 - - - C o n v e r s i o n s - - - 40 - - - C o n v e r s i o n s - - -
51 ------------------------------------- 41 -------------------------------------
52 */ 42 */
53 43
54 // ES5, section 9.12 44 // ES5, section 9.12
55 function SameValue(x, y) { 45 function SameValue(x, y) {
56 if (typeof x != typeof y) return false; 46 if (typeof x != typeof y) return false;
57 if (IS_NUMBER(x)) { 47 if (IS_NUMBER(x)) {
58 if (NUMBER_IS_NAN(x) && NUMBER_IS_NAN(y)) return true; 48 if (NUMBER_IS_NAN(x) && NUMBER_IS_NAN(y)) return true;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 to.AddIndexedProperty = AddIndexedProperty; 164 to.AddIndexedProperty = AddIndexedProperty;
175 to.MaxSimple = MaxSimple; 165 to.MaxSimple = MaxSimple;
176 to.MinSimple = MinSimple; 166 to.MinSimple = MinSimple;
177 to.SameValue = SameValue; 167 to.SameValue = SameValue;
178 to.SameValueZero = SameValueZero; 168 to.SameValueZero = SameValueZero;
179 to.ToPositiveInteger = ToPositiveInteger; 169 to.ToPositiveInteger = ToPositiveInteger;
180 to.SpeciesConstructor = SpeciesConstructor; 170 to.SpeciesConstructor = SpeciesConstructor;
181 }); 171 });
182 172
183 %InstallToContext([ 173 %InstallToContext([
184 "concat_iterable_to_array_builtin", CONCAT_ITERABLE_TO_ARRAY,
185 ]);
186
187 %InstallToContext([
188 "concat_iterable_to_array", ConcatIterableToArray, 174 "concat_iterable_to_array", ConcatIterableToArray,
189 ]); 175 ]);
190 176
191 }) 177 })
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698