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

Side by Side Diff: src/factory.cc

Issue 6626072: Add the possibility for a code stub to be non-movable... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' 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
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('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 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 function->shared()->set_code(*code); 598 function->shared()->set_code(*code);
599 function->set_code(*code); 599 function->set_code(*code);
600 ASSERT(!function->has_initial_map()); 600 ASSERT(!function->has_initial_map());
601 ASSERT(!function->has_prototype()); 601 ASSERT(!function->has_prototype());
602 return function; 602 return function;
603 } 603 }
604 604
605 605
606 Handle<Code> Factory::NewCode(const CodeDesc& desc, 606 Handle<Code> Factory::NewCode(const CodeDesc& desc,
607 Code::Flags flags, 607 Code::Flags flags,
608 Handle<Object> self_ref) { 608 Handle<Object> self_ref,
609 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, flags, self_ref), Code); 609 bool immovable) {
610 CALL_HEAP_FUNCTION(Heap::CreateCode(desc, flags, self_ref, immovable), Code);
610 } 611 }
611 612
612 613
613 Handle<Code> Factory::CopyCode(Handle<Code> code) { 614 Handle<Code> Factory::CopyCode(Handle<Code> code) {
614 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code); 615 CALL_HEAP_FUNCTION(Heap::CopyCode(*code), Code);
615 } 616 }
616 617
617 618
618 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) { 619 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) {
619 CALL_HEAP_FUNCTION(Heap::CopyCode(*code, reloc_info), Code); 620 CALL_HEAP_FUNCTION(Heap::CopyCode(*code, reloc_info), Code);
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 Execution::ConfigureInstance(instance, 1079 Execution::ConfigureInstance(instance,
1079 instance_template, 1080 instance_template,
1080 pending_exception); 1081 pending_exception);
1081 } else { 1082 } else {
1082 *pending_exception = false; 1083 *pending_exception = false;
1083 } 1084 }
1084 } 1085 }
1085 1086
1086 1087
1087 } } // namespace v8::internal 1088 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698