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

Side by Side Diff: src/bootstrapper.cc

Issue 8039: - ip register cannot be used when accessing large constants in the instructio... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 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
« no previous file with comments | « no previous file | src/macro-assembler-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 global_context()->function_instance_map()->set_prototype(*empty_function); 519 global_context()->function_instance_map()->set_prototype(*empty_function);
520 520
521 // Allocate the function map first and then patch the prototype later 521 // Allocate the function map first and then patch the prototype later
522 Handle<Map> empty_fm = Factory::CopyMap(fm); 522 Handle<Map> empty_fm = Factory::CopyMap(fm);
523 empty_fm->set_instance_descriptors(*function_map_descriptors); 523 empty_fm->set_instance_descriptors(*function_map_descriptors);
524 empty_fm->set_prototype(global_context()->object_function()->prototype()); 524 empty_fm->set_prototype(global_context()->object_function()->prototype());
525 empty_function->set_map(*empty_fm); 525 empty_function->set_map(*empty_fm);
526 } 526 }
527 527
528 { // --- G l o b a l --- 528 { // --- G l o b a l ---
529
530 // Step 1: create a fresh inner JSGlobalObject 529 // Step 1: create a fresh inner JSGlobalObject
531 Handle<JSGlobalObject> object; 530 Handle<JSGlobalObject> object;
532 { 531 {
533 Handle<JSFunction> js_global_function; 532 Handle<JSFunction> js_global_function;
534 Handle<ObjectTemplateInfo> js_global_template; 533 Handle<ObjectTemplateInfo> js_global_template;
535 if (!global_template.IsEmpty()) { 534 if (!global_template.IsEmpty()) {
536 // Get prototype template of the global_template 535 // Get prototype template of the global_template
537 Handle<ObjectTemplateInfo> data = 536 Handle<ObjectTemplateInfo> data =
538 v8::Utils::OpenHandle(*global_template); 537 v8::Utils::OpenHandle(*global_template);
539 Handle<FunctionTemplateInfo> global_constructor = 538 Handle<FunctionTemplateInfo> global_constructor =
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 if (!ConfigureGlobalObjects(global_template)) return; 1427 if (!ConfigureGlobalObjects(global_template)) return;
1429 1428
1430 if (!InstallExtensions(extensions)) return; 1429 if (!InstallExtensions(extensions)) return;
1431 1430
1432 if (!InstallSpecialObjects()) return; 1431 if (!InstallSpecialObjects()) return;
1433 1432
1434 result_ = global_context_; 1433 result_ = global_context_;
1435 } 1434 }
1436 1435
1437 } } // namespace v8::internal 1436 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698