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

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

Issue 1413173003: Move error message makers off js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 2 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/js/array-iterator.js ('k') | src/js/collection.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 (function(global, utils) { 5 (function(global, utils) {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
11 // ------------------------------------------------------------------- 11 // -------------------------------------------------------------------
12 // Imports 12 // Imports
13 13
14 var GlobalArrayBuffer = global.ArrayBuffer; 14 var GlobalArrayBuffer = global.ArrayBuffer;
15 var GlobalObject = global.Object; 15 var GlobalObject = global.Object;
16 var MakeTypeError;
16 var MaxSimple; 17 var MaxSimple;
17 var MinSimple; 18 var MinSimple;
18 var ToPositiveInteger; 19 var ToPositiveInteger;
19 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); 20 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
20 21
21 utils.Import(function(from) { 22 utils.Import(function(from) {
23 MakeTypeError = from.MakeTypeError;
22 MaxSimple = from.MaxSimple; 24 MaxSimple = from.MaxSimple;
23 MinSimple = from.MinSimple; 25 MinSimple = from.MinSimple;
24 ToPositiveInteger = from.ToPositiveInteger; 26 ToPositiveInteger = from.ToPositiveInteger;
25 }); 27 });
26 28
27 // ------------------------------------------------------------------- 29 // -------------------------------------------------------------------
28 30
29 function ArrayBufferConstructor(length) { // length = 1 31 function ArrayBufferConstructor(length) { // length = 1
30 if (%_IsConstructCall()) { 32 if (%_IsConstructCall()) {
31 var byteLength = ToPositiveInteger(length, kInvalidArrayBufferLength); 33 var byteLength = ToPositiveInteger(length, kInvalidArrayBufferLength);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 103
102 utils.InstallFunctions(GlobalArrayBuffer, DONT_ENUM, [ 104 utils.InstallFunctions(GlobalArrayBuffer, DONT_ENUM, [
103 "isView", ArrayBufferIsViewJS 105 "isView", ArrayBufferIsViewJS
104 ]); 106 ]);
105 107
106 utils.InstallFunctions(GlobalArrayBuffer.prototype, DONT_ENUM, [ 108 utils.InstallFunctions(GlobalArrayBuffer.prototype, DONT_ENUM, [
107 "slice", ArrayBufferSlice 109 "slice", ArrayBufferSlice
108 ]); 110 ]);
109 111
110 }) 112 })
OLDNEW
« no previous file with comments | « src/js/array-iterator.js ('k') | src/js/collection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698