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

Side by Side Diff: src/objects.h

Issue 1516003002: Remove bogus "public:" in SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 6508 matching lines...) Expand 10 before | Expand all | Expand 10 after
6519 Handle<Code> code, 6519 Handle<Code> code,
6520 Handle<LiteralsArray> literals, 6520 Handle<LiteralsArray> literals,
6521 BailoutId osr_ast_id); 6521 BailoutId osr_ast_id);
6522 6522
6523 // We may already have cached the code, but want to store literals in the 6523 // We may already have cached the code, but want to store literals in the
6524 // cache. 6524 // cache.
6525 inline static void AddLiteralsToOptimizedCodeMap( 6525 inline static void AddLiteralsToOptimizedCodeMap(
6526 Handle<SharedFunctionInfo> shared, Handle<Context> native_context, 6526 Handle<SharedFunctionInfo> shared, Handle<Context> native_context,
6527 Handle<LiteralsArray> literals); 6527 Handle<LiteralsArray> literals);
6528 6528
6529 public:
6530 // Set up the link between shared function info and the script. The shared 6529 // Set up the link between shared function info and the script. The shared
6531 // function info is added to the list on the script. 6530 // function info is added to the list on the script.
6532 static void SetScript(Handle<SharedFunctionInfo> shared, 6531 static void SetScript(Handle<SharedFunctionInfo> shared,
6533 Handle<Object> script_object); 6532 Handle<Object> script_object);
6534 6533
6535 // Layout description of the optimized code map. 6534 // Layout description of the optimized code map.
6536 static const int kSharedCodeIndex = 0; 6535 static const int kSharedCodeIndex = 0;
6537 static const int kEntriesStart = 1; 6536 static const int kEntriesStart = 1;
6538 static const int kContextOffset = 0; 6537 static const int kContextOffset = 0;
6539 static const int kCachedCodeOffset = 1; 6538 static const int kCachedCodeOffset = 1;
(...skipping 4155 matching lines...) Expand 10 before | Expand all | Expand 10 after
10695 } 10694 }
10696 return value; 10695 return value;
10697 } 10696 }
10698 }; 10697 };
10699 10698
10700 10699
10701 } // NOLINT, false-positive due to second-order macros. 10700 } // NOLINT, false-positive due to second-order macros.
10702 } // NOLINT, false-positive due to second-order macros. 10701 } // NOLINT, false-positive due to second-order macros.
10703 10702
10704 #endif // V8_OBJECTS_H_ 10703 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698