OLD | NEW |
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 Loading... |
30 #include "accessors.h" | 30 #include "accessors.h" |
31 #include "api.h" | 31 #include "api.h" |
32 #include "bootstrapper.h" | 32 #include "bootstrapper.h" |
33 #include "compiler.h" | 33 #include "compiler.h" |
34 #include "debug.h" | 34 #include "debug.h" |
35 #include "execution.h" | 35 #include "execution.h" |
36 #include "global-handles.h" | 36 #include "global-handles.h" |
37 #include "natives.h" | 37 #include "natives.h" |
38 #include "runtime.h" | 38 #include "runtime.h" |
39 | 39 |
40 namespace v8 { namespace internal { | 40 namespace v8 { |
| 41 namespace internal { |
41 | 42 |
42 | 43 |
43 v8::ImplementationUtilities::HandleScopeData HandleScope::current_ = | 44 v8::ImplementationUtilities::HandleScopeData HandleScope::current_ = |
44 { -1, NULL, NULL }; | 45 { -1, NULL, NULL }; |
45 | 46 |
46 | 47 |
47 int HandleScope::NumberOfHandles() { | 48 int HandleScope::NumberOfHandles() { |
48 int n = HandleScopeImplementer::instance()->Blocks()->length(); | 49 int n = HandleScopeImplementer::instance()->Blocks()->length(); |
49 if (n == 0) return 0; | 50 if (n == 0) return 0; |
50 return ((n - 1) * kHandleBlockSize) + | 51 return ((n - 1) * kHandleBlockSize) + |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map); | 732 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map); |
732 obj->set_map(*new_map); | 733 obj->set_map(*new_map); |
733 new_map->set_needs_loading(true); | 734 new_map->set_needs_loading(true); |
734 // Store the lazy loading info in the constructor field. We'll | 735 // Store the lazy loading info in the constructor field. We'll |
735 // reestablish the constructor from the fixed array after loading. | 736 // reestablish the constructor from the fixed array after loading. |
736 new_map->set_constructor(*arr); | 737 new_map->set_constructor(*arr); |
737 ASSERT(!obj->IsLoaded()); | 738 ASSERT(!obj->IsLoaded()); |
738 } | 739 } |
739 | 740 |
740 } } // namespace v8::internal | 741 } } // namespace v8::internal |
OLD | NEW |