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

Side by Side Diff: src/factory.cc

Issue 8258015: Support array literals with FAST_DOUBLE_ELEMENTS ElementsKind. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove regressions Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 Handle<FixedArray> Factory::NewFixedArrayWithHoles(int size, 52 Handle<FixedArray> Factory::NewFixedArrayWithHoles(int size,
53 PretenureFlag pretenure) { 53 PretenureFlag pretenure) {
54 ASSERT(0 <= size); 54 ASSERT(0 <= size);
55 CALL_HEAP_FUNCTION( 55 CALL_HEAP_FUNCTION(
56 isolate(), 56 isolate(),
57 isolate()->heap()->AllocateFixedArrayWithHoles(size, pretenure), 57 isolate()->heap()->AllocateFixedArrayWithHoles(size, pretenure),
58 FixedArray); 58 FixedArray);
59 } 59 }
60 60
61 61
62 Handle<FixedArray> Factory::NewFixedDoubleArray(int size, 62 Handle<FixedDoubleArray> Factory::NewFixedDoubleArray(int size,
63 PretenureFlag pretenure) { 63 PretenureFlag pretenure) {
64 ASSERT(0 <= size); 64 ASSERT(0 <= size);
65 CALL_HEAP_FUNCTION( 65 CALL_HEAP_FUNCTION(
66 isolate(), 66 isolate(),
67 isolate()->heap()->AllocateUninitializedFixedDoubleArray(size, pretenure), 67 isolate()->heap()->AllocateUninitializedFixedDoubleArray(size, pretenure),
68 FixedArray); 68 FixedDoubleArray);
69 } 69 }
70 70
71 71
72 Handle<StringDictionary> Factory::NewStringDictionary(int at_least_space_for) { 72 Handle<StringDictionary> Factory::NewStringDictionary(int at_least_space_for) {
73 ASSERT(0 <= at_least_space_for); 73 ASSERT(0 <= at_least_space_for);
74 CALL_HEAP_FUNCTION(isolate(), 74 CALL_HEAP_FUNCTION(isolate(),
75 StringDictionary::Allocate(at_least_space_for), 75 StringDictionary::Allocate(at_least_space_for),
76 StringDictionary); 76 StringDictionary);
77 } 77 }
78 78
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 src->GetElementsTransitionMap(elements_kind), 464 src->GetElementsTransitionMap(elements_kind),
465 Map); 465 Map);
466 } 466 }
467 467
468 468
469 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { 469 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) {
470 CALL_HEAP_FUNCTION(isolate(), array->Copy(), FixedArray); 470 CALL_HEAP_FUNCTION(isolate(), array->Copy(), FixedArray);
471 } 471 }
472 472
473 473
474 Handle<FixedDoubleArray> Factory::CopyFixedDoubleArray(
475 Handle<FixedDoubleArray> array) {
476 CALL_HEAP_FUNCTION(isolate(), array->Copy(), FixedDoubleArray);
477 }
478
479
474 Handle<JSFunction> Factory::BaseNewFunctionFromSharedFunctionInfo( 480 Handle<JSFunction> Factory::BaseNewFunctionFromSharedFunctionInfo(
475 Handle<SharedFunctionInfo> function_info, 481 Handle<SharedFunctionInfo> function_info,
476 Handle<Map> function_map, 482 Handle<Map> function_map,
477 PretenureFlag pretenure) { 483 PretenureFlag pretenure) {
478 CALL_HEAP_FUNCTION( 484 CALL_HEAP_FUNCTION(
479 isolate(), 485 isolate(),
480 isolate()->heap()->AllocateFunction(*function_map, 486 isolate()->heap()->AllocateFunction(*function_map,
481 *function_info, 487 *function_info,
482 isolate()->heap()->the_hole_value(), 488 isolate()->heap()->the_hole_value(),
483 pretenure), 489 pretenure),
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 1347
1342 1348
1343 Handle<Object> Factory::ToBoolean(bool value) { 1349 Handle<Object> Factory::ToBoolean(bool value) {
1344 return Handle<Object>(value 1350 return Handle<Object>(value
1345 ? isolate()->heap()->true_value() 1351 ? isolate()->heap()->true_value()
1346 : isolate()->heap()->false_value()); 1352 : isolate()->heap()->false_value());
1347 } 1353 }
1348 1354
1349 1355
1350 } } // namespace v8::internal 1356 } } // namespace v8::internal
OLDNEW
« src/arm/full-codegen-arm.cc ('K') | « src/factory.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698