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

Side by Side Diff: src/api.cc

Issue 7830: Fix style issues. (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/bootstrapper.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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-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 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after
2248 // Make sure that the global_template has a constructor. 2248 // Make sure that the global_template has a constructor.
2249 if (!global_template.IsEmpty()) { 2249 if (!global_template.IsEmpty()) {
2250 i::Handle<i::FunctionTemplateInfo> constructor = 2250 i::Handle<i::FunctionTemplateInfo> constructor =
2251 EnsureConstructor(Utils::OpenHandle(*global_template)); 2251 EnsureConstructor(Utils::OpenHandle(*global_template));
2252 2252
2253 // Create a fresh template for global proxy object. 2253 // Create a fresh template for global proxy object.
2254 Local<ObjectTemplate> proxy_template = ObjectTemplate::New(); 2254 Local<ObjectTemplate> proxy_template = ObjectTemplate::New();
2255 2255
2256 i::Handle<i::FunctionTemplateInfo> proxy_constructor = 2256 i::Handle<i::FunctionTemplateInfo> proxy_constructor =
2257 EnsureConstructor(Utils::OpenHandle(*proxy_template)); 2257 EnsureConstructor(Utils::OpenHandle(*proxy_template));
2258 2258
2259 // Set the global template to be the prototype template 2259 // Set the global template to be the prototype template
2260 // of global proxy template. 2260 // of global proxy template.
2261 proxy_constructor->set_prototype_template( 2261 proxy_constructor->set_prototype_template(
2262 *Utils::OpenHandle(*global_template)); 2262 *Utils::OpenHandle(*global_template));
2263 2263
2264 // Migrate security handlers from global_template to proxy_template. 2264 // Migrate security handlers from global_template to proxy_template.
2265 if (!constructor->access_check_info()->IsUndefined()) { 2265 if (!constructor->access_check_info()->IsUndefined()) {
2266 proxy_constructor->set_access_check_info( 2266 proxy_constructor->set_access_check_info(
2267 constructor->access_check_info()); 2267 constructor->access_check_info());
2268 proxy_constructor->set_needs_access_check(true); 2268 proxy_constructor->set_needs_access_check(true);
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
2966 reinterpret_cast<HandleScopeImplementer*>(storage); 2966 reinterpret_cast<HandleScopeImplementer*>(storage);
2967 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); 2967 List<void**>* blocks_of_archived_thread = thread_local->Blocks();
2968 ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = 2968 ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread =
2969 &thread_local->handle_scope_data_; 2969 &thread_local->handle_scope_data_;
2970 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); 2970 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread);
2971 2971
2972 return storage + ArchiveSpacePerThread(); 2972 return storage + ArchiveSpacePerThread();
2973 } 2973 }
2974 2974
2975 } } // namespace v8::internal 2975 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698