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

Side by Side Diff: src/typedarray.js

Issue 209353006: Refactor optimized in hydrogen only runtime functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch for landing + rebase Created 6 years, 9 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 | « src/serialize.cc ('k') | src/x64/code-stubs-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 target[offset + i] = temp[i - leftIndex]; 254 target[offset + i] = temp[i - leftIndex];
255 } 255 }
256 } 256 }
257 257
258 function TypedArraySet(obj, offset) { 258 function TypedArraySet(obj, offset) {
259 var intOffset = IS_UNDEFINED(offset) ? 0 : TO_INTEGER(offset); 259 var intOffset = IS_UNDEFINED(offset) ? 0 : TO_INTEGER(offset);
260 if (intOffset < 0) { 260 if (intOffset < 0) {
261 throw MakeTypeError("typed_array_set_negative_offset"); 261 throw MakeTypeError("typed_array_set_negative_offset");
262 } 262 }
263 263
264 if (intOffset > %MaxSmi()) { 264 if (intOffset > %_MaxSmi()) {
265 throw MakeRangeError("typed_array_set_source_too_large"); 265 throw MakeRangeError("typed_array_set_source_too_large");
266 } 266 }
267 switch (%TypedArraySetFastCases(this, obj, intOffset)) { 267 switch (%TypedArraySetFastCases(this, obj, intOffset)) {
268 // These numbers should be synchronized with runtime.cc. 268 // These numbers should be synchronized with runtime.cc.
269 case 0: // TYPED_ARRAY_SET_TYPED_ARRAY_SAME_TYPE 269 case 0: // TYPED_ARRAY_SET_TYPED_ARRAY_SAME_TYPE
270 return; 270 return;
271 case 1: // TYPED_ARRAY_SET_TYPED_ARRAY_OVERLAPPING 271 case 1: // TYPED_ARRAY_SET_TYPED_ARRAY_OVERLAPPING
272 TypedArraySetFromOverlappingTypedArray(this, obj, intOffset); 272 TypedArraySetFromOverlappingTypedArray(this, obj, intOffset);
273 return; 273 return;
274 case 2: // TYPED_ARRAY_SET_TYPED_ARRAY_NONOVERLAPPING 274 case 2: // TYPED_ARRAY_SET_TYPED_ARRAY_NONOVERLAPPING
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 466
467 "getFloat32", DataViewGetFloat32, 467 "getFloat32", DataViewGetFloat32,
468 "setFloat32", DataViewSetFloat32, 468 "setFloat32", DataViewSetFloat32,
469 469
470 "getFloat64", DataViewGetFloat64, 470 "getFloat64", DataViewGetFloat64,
471 "setFloat64", DataViewSetFloat64 471 "setFloat64", DataViewSetFloat64
472 )); 472 ));
473 } 473 }
474 474
475 SetupDataView(); 475 SetupDataView();
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698