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

Side by Side Diff: src/stub-cache.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/strtod.cc ('k') | src/types.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 if (lookup->IsFound() && 2038 if (lookup->IsFound() &&
2039 lookup->IsCacheable() && 2039 lookup->IsCacheable() &&
2040 lookup->type() == CONSTANT_FUNCTION) { 2040 lookup->type() == CONSTANT_FUNCTION) {
2041 // We only optimize constant function calls. 2041 // We only optimize constant function calls.
2042 Initialize(Handle<JSFunction>(lookup->GetConstantFunction())); 2042 Initialize(Handle<JSFunction>(lookup->GetConstantFunction()));
2043 } else { 2043 } else {
2044 Initialize(Handle<JSFunction>::null()); 2044 Initialize(Handle<JSFunction>::null());
2045 } 2045 }
2046 } 2046 }
2047 2047
2048
2048 CallOptimization::CallOptimization(Handle<JSFunction> function) { 2049 CallOptimization::CallOptimization(Handle<JSFunction> function) {
2049 Initialize(function); 2050 Initialize(function);
2050 } 2051 }
2051 2052
2052 2053
2053 int CallOptimization::GetPrototypeDepthOfExpectedType( 2054 int CallOptimization::GetPrototypeDepthOfExpectedType(
2054 Handle<JSObject> object, 2055 Handle<JSObject> object,
2055 Handle<JSObject> holder) const { 2056 Handle<JSObject> holder) const {
2056 ASSERT(is_simple_api_call()); 2057 ASSERT(is_simple_api_call());
2057 if (expected_receiver_type_.is_null()) return 0; 2058 if (expected_receiver_type_.is_null()) return 0;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 Handle<FunctionTemplateInfo>( 2101 Handle<FunctionTemplateInfo>(
2101 FunctionTemplateInfo::cast(signature->receiver())); 2102 FunctionTemplateInfo::cast(signature->receiver()));
2102 } 2103 }
2103 } 2104 }
2104 2105
2105 is_simple_api_call_ = true; 2106 is_simple_api_call_ = true;
2106 } 2107 }
2107 2108
2108 2109
2109 } } // namespace v8::internal 2110 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/strtod.cc ('k') | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698