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

Side by Side Diff: src/handles.cc

Issue 360011: Obey the flag --lazy in the toplevel code generator.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month 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/handles.h ('k') | src/ia32/codegen-ia32.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 19 matching lines...) Expand all
30 #include "accessors.h" 30 #include "accessors.h"
31 #include "api.h" 31 #include "api.h"
32 #include "arguments.h" 32 #include "arguments.h"
33 #include "bootstrapper.h" 33 #include "bootstrapper.h"
34 #include "compiler.h" 34 #include "compiler.h"
35 #include "debug.h" 35 #include "debug.h"
36 #include "execution.h" 36 #include "execution.h"
37 #include "global-handles.h" 37 #include "global-handles.h"
38 #include "natives.h" 38 #include "natives.h"
39 #include "runtime.h" 39 #include "runtime.h"
40 #include "stub-cache.h"
40 41
41 namespace v8 { 42 namespace v8 {
42 namespace internal { 43 namespace internal {
43 44
44 45
45 v8::ImplementationUtilities::HandleScopeData HandleScope::current_ = 46 v8::ImplementationUtilities::HandleScopeData HandleScope::current_ =
46 { -1, NULL, NULL }; 47 { -1, NULL, NULL };
47 48
48 49
49 int HandleScope::NumberOfHandles() { 50 int HandleScope::NumberOfHandles() {
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 KEEP_INOBJECT_PROPERTIES, 681 KEEP_INOBJECT_PROPERTIES,
681 expected_additional_properties); 682 expected_additional_properties);
682 has_been_transformed_ = true; 683 has_been_transformed_ = true;
683 684
684 } else { 685 } else {
685 has_been_transformed_ = false; 686 has_been_transformed_ = false;
686 } 687 }
687 } 688 }
688 689
689 690
691 Handle<Code> ComputeLazyCompile(int argc) {
692 CALL_HEAP_FUNCTION(StubCache::ComputeLazyCompile(argc), Code);
693 }
694
695
690 OptimizedObjectForAddingMultipleProperties:: 696 OptimizedObjectForAddingMultipleProperties::
691 ~OptimizedObjectForAddingMultipleProperties() { 697 ~OptimizedObjectForAddingMultipleProperties() {
692 // Reoptimize the object to allow fast property access. 698 // Reoptimize the object to allow fast property access.
693 if (has_been_transformed_) { 699 if (has_been_transformed_) {
694 TransformToFastProperties(object_, unused_property_fields_); 700 TransformToFastProperties(object_, unused_property_fields_);
695 } 701 }
696 } 702 }
697 703
698 704
699 void LoadLazy(Handle<JSObject> obj, bool* pending_exception) { 705 void LoadLazy(Handle<JSObject> obj, bool* pending_exception) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map); 778 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map);
773 obj->set_map(*new_map); 779 obj->set_map(*new_map);
774 new_map->set_needs_loading(true); 780 new_map->set_needs_loading(true);
775 // Store the lazy loading info in the constructor field. We'll 781 // Store the lazy loading info in the constructor field. We'll
776 // reestablish the constructor from the fixed array after loading. 782 // reestablish the constructor from the fixed array after loading.
777 new_map->set_constructor(*arr); 783 new_map->set_constructor(*arr);
778 ASSERT(!obj->IsLoaded()); 784 ASSERT(!obj->IsLoaded());
779 } 785 }
780 786
781 } } // namespace v8::internal 787 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698