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

Side by Side Diff: src/factory.cc

Issue 6685073: Remember and reuse derived map for external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix handling of empty property name Created 9 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 Handle<Map> Factory::GetFastElementsMap(Handle<Map> src) { 385 Handle<Map> Factory::GetFastElementsMap(Handle<Map> src) {
386 CALL_HEAP_FUNCTION(isolate(), src->GetFastElementsMap(), Map); 386 CALL_HEAP_FUNCTION(isolate(), src->GetFastElementsMap(), Map);
387 } 387 }
388 388
389 389
390 Handle<Map> Factory::GetSlowElementsMap(Handle<Map> src) { 390 Handle<Map> Factory::GetSlowElementsMap(Handle<Map> src) {
391 CALL_HEAP_FUNCTION(isolate(), src->GetSlowElementsMap(), Map); 391 CALL_HEAP_FUNCTION(isolate(), src->GetSlowElementsMap(), Map);
392 } 392 }
393 393
394 394
395 Handle<Map> Factory::NewExternalArrayElementsMap(Handle<Map> src) { 395 Handle<Map> Factory::GetExternalArrayElementsMap(
396 CALL_HEAP_FUNCTION(isolate(), src->NewExternalArrayElementsMap(), Map); 396 Handle<Map> src,
397 ExternalArrayType array_type,
398 bool safe_to_add_transition) {
399 CALL_HEAP_FUNCTION(isolate(), src->GetExternalArrayElementsMap(
Mads Ager (chromium) 2011/03/22 18:57:25 I would prefer a different indentation here. How a
danno 2011/03/23 09:56:52 Done.
400 array_type,
401 safe_to_add_transition), Map);
397 } 402 }
398 403
399 404
400 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) { 405 Handle<FixedArray> Factory::CopyFixedArray(Handle<FixedArray> array) {
401 CALL_HEAP_FUNCTION(isolate(), array->Copy(), FixedArray); 406 CALL_HEAP_FUNCTION(isolate(), array->Copy(), FixedArray);
402 } 407 }
403 408
404 409
405 Handle<JSFunction> Factory::BaseNewFunctionFromSharedFunctionInfo( 410 Handle<JSFunction> Factory::BaseNewFunctionFromSharedFunctionInfo(
406 Handle<SharedFunctionInfo> function_info, 411 Handle<SharedFunctionInfo> function_info,
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 Execution::ConfigureInstance(instance, 1187 Execution::ConfigureInstance(instance,
1183 instance_template, 1188 instance_template,
1184 pending_exception); 1189 pending_exception);
1185 } else { 1190 } else {
1186 *pending_exception = false; 1191 *pending_exception = false;
1187 } 1192 }
1188 } 1193 }
1189 1194
1190 1195
1191 } } // namespace v8::internal 1196 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/mark-compact.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698