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/contexts.cc

Issue 18509003: Keep two empty lines between declarations for cpp files (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 5 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/compiler.cc ('k') | src/counters.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 current = Context::cast(closure->context()); 81 current = Context::cast(closure->context());
82 } 82 }
83 return current; 83 return current;
84 } 84 }
85 85
86 86
87 JSObject* Context::global_proxy() { 87 JSObject* Context::global_proxy() {
88 return native_context()->global_proxy_object(); 88 return native_context()->global_proxy_object();
89 } 89 }
90 90
91
91 void Context::set_global_proxy(JSObject* object) { 92 void Context::set_global_proxy(JSObject* object) {
92 native_context()->set_global_proxy_object(object); 93 native_context()->set_global_proxy_object(object);
93 } 94 }
94 95
95 96
96 Handle<Object> Context::Lookup(Handle<String> name, 97 Handle<Object> Context::Lookup(Handle<String> name,
97 ContextLookupFlags flags, 98 ContextLookupFlags flags,
98 int* index, 99 int* index,
99 PropertyAttributes* attributes, 100 PropertyAttributes* attributes,
100 BindingFlags* binding_flags) { 101 BindingFlags* binding_flags) {
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // During bootstrapping we allow all objects to pass as global 353 // During bootstrapping we allow all objects to pass as global
353 // objects. This is necessary to fix circular dependencies. 354 // objects. This is necessary to fix circular dependencies.
354 Isolate* isolate = Isolate::Current(); 355 Isolate* isolate = Isolate::Current();
355 return isolate->heap()->gc_state() != Heap::NOT_IN_GC || 356 return isolate->heap()->gc_state() != Heap::NOT_IN_GC ||
356 isolate->bootstrapper()->IsActive() || 357 isolate->bootstrapper()->IsActive() ||
357 object->IsGlobalObject(); 358 object->IsGlobalObject();
358 } 359 }
359 #endif 360 #endif
360 361
361 } } // namespace v8::internal 362 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/counters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698