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

Side by Side Diff: lib/runtime/_operations.js

Issue 1183033004: js_ast: implement rest/spread parsing (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | lib/runtime/dart/_js_mirrors.js » ('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 (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /* This library defines runtime operations on objects used by the code 5 /* This library defines runtime operations on objects used by the code
6 * generator. 6 * generator.
7 */ 7 */
8 dart_library.library('dart_runtime/_operations', null, /* Imports */[ 8 dart_library.library('dart_runtime/_operations', null, /* Imports */[
9 ], /* Lazy Imports */[ 9 ], /* Lazy Imports */[
10 'dart/async', 10 'dart/async',
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 let f = obj[symbol]; 155 let f = obj[symbol];
156 let ftype = classes.getMethodType(obj, name); 156 let ftype = classes.getMethodType(obj, name);
157 return checkAndCall(f, ftype, obj, args, displayName); 157 return checkAndCall(f, ftype, obj, args, displayName);
158 } 158 }
159 159
160 function dsend(obj, method/*, ...args*/) { 160 function dsend(obj, method/*, ...args*/) {
161 return callMethod(obj, method, slice.call(arguments, 2)); 161 return callMethod(obj, method, slice.call(arguments, 2));
162 } 162 }
163 exports.dsend = dsend; 163 exports.dsend = dsend;
164 164
165 function dsendArray(obj, method, args) {
166 return dsend(obj, method, ...args);
167 }
168 exports.dsendArray = dsendArray;
169
170 function dindex(obj, index) { 165 function dindex(obj, index) {
171 return callMethod(obj, 'get', [index], '[]'); 166 return callMethod(obj, 'get', [index], '[]');
172 } 167 }
173 exports.dindex = dindex; 168 exports.dindex = dindex;
174 169
175 function dsetindex(obj, index, value) { 170 function dsetindex(obj, index, value) {
176 return callMethod(obj, 'set', [index, value], '[]='); 171 return callMethod(obj, 'set', [index, value], '[]=');
177 } 172 }
178 exports.dsetindex = dsetindex; 173 exports.dsetindex = dsetindex;
179 174
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 next() { 389 next() {
395 let i = this.dartIterator; 390 let i = this.dartIterator;
396 let done = !i.moveNext(); 391 let done = !i.moveNext();
397 return { done: done, value: done ? void 0 : i.current }; 392 return { done: done, value: done ? void 0 : i.current };
398 } 393 }
399 } 394 }
400 exports.JsIterator = JsIterator; 395 exports.JsIterator = JsIterator;
401 396
402 397
403 }); 398 });
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/_js_mirrors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698