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

Side by Side Diff: src/factory.h

Issue 1254873002: [interpreter] A couple of minor tweaks to BytecodeArray. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 | src/factory.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 10
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 Handle<Foreign> NewForeign(Address addr, 276 Handle<Foreign> NewForeign(Address addr,
277 PretenureFlag pretenure = NOT_TENURED); 277 PretenureFlag pretenure = NOT_TENURED);
278 278
279 // Allocate a new foreign object. The foreign is pretenured (allocated 279 // Allocate a new foreign object. The foreign is pretenured (allocated
280 // directly in the old generation). 280 // directly in the old generation).
281 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); 281 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign);
282 282
283 Handle<ByteArray> NewByteArray(int length, 283 Handle<ByteArray> NewByteArray(int length,
284 PretenureFlag pretenure = NOT_TENURED); 284 PretenureFlag pretenure = NOT_TENURED);
285 285
286 Handle<BytecodeArray> NewBytecodeArray(int length, const byte* raw_bytecodes); 286 Handle<BytecodeArray> NewBytecodeArray(int length, const byte* raw_bytecodes,
287 int frame_size);
287 288
288 Handle<ExternalArray> NewExternalArray( 289 Handle<ExternalArray> NewExternalArray(
289 int length, 290 int length,
290 ExternalArrayType array_type, 291 ExternalArrayType array_type,
291 void* external_pointer, 292 void* external_pointer,
292 PretenureFlag pretenure = NOT_TENURED); 293 PretenureFlag pretenure = NOT_TENURED);
293 294
294 Handle<FixedTypedArrayBase> NewFixedTypedArray( 295 Handle<FixedTypedArrayBase> NewFixedTypedArray(
295 int length, ExternalArrayType array_type, bool initialize, 296 int length, ExternalArrayType array_type, bool initialize,
296 PretenureFlag pretenure = NOT_TENURED); 297 PretenureFlag pretenure = NOT_TENURED);
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 // Reinitialize a JSProxy into an (empty) JS object of respective type and 739 // Reinitialize a JSProxy into an (empty) JS object of respective type and
739 // size, but keeping the original prototype. The receiver must have at least 740 // size, but keeping the original prototype. The receiver must have at least
740 // the size of the new object. The object is reinitialized and behaves as an 741 // the size of the new object. The object is reinitialized and behaves as an
741 // object that has been freshly allocated. 742 // object that has been freshly allocated.
742 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 743 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
743 }; 744 };
744 745
745 } } // namespace v8::internal 746 } } // namespace v8::internal
746 747
747 #endif // V8_FACTORY_H_ 748 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698