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

Side by Side Diff: src/objects.h

Issue 330303002: Add machinery to support arguments escaping to safe builtins (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.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 // 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 "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 7069 matching lines...) Expand 10 before | Expand all | Expand 10 after
7080 // Trims the optimized code map after entries have been removed. 7080 // Trims the optimized code map after entries have been removed.
7081 void TrimOptimizedCodeMap(int shrink_by); 7081 void TrimOptimizedCodeMap(int shrink_by);
7082 7082
7083 // Add a new entry to the optimized code map. 7083 // Add a new entry to the optimized code map.
7084 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, 7084 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared,
7085 Handle<Context> native_context, 7085 Handle<Context> native_context,
7086 Handle<Code> code, 7086 Handle<Code> code,
7087 Handle<FixedArray> literals, 7087 Handle<FixedArray> literals,
7088 BailoutId osr_ast_id); 7088 BailoutId osr_ast_id);
7089 7089
7090 bool CanHandleArgumentsSafely();
7091
7090 // Layout description of the optimized code map. 7092 // Layout description of the optimized code map.
7091 static const int kNextMapIndex = 0; 7093 static const int kNextMapIndex = 0;
7092 static const int kEntriesStart = 1; 7094 static const int kEntriesStart = 1;
7093 static const int kContextOffset = 0; 7095 static const int kContextOffset = 0;
7094 static const int kCachedCodeOffset = 1; 7096 static const int kCachedCodeOffset = 1;
7095 static const int kLiteralsOffset = 2; 7097 static const int kLiteralsOffset = 2;
7096 static const int kOsrAstIdOffset = 3; 7098 static const int kOsrAstIdOffset = 3;
7097 static const int kEntryLength = 4; 7099 static const int kEntryLength = 4;
7098 static const int kInitialLength = kEntriesStart + kEntryLength; 7100 static const int kInitialLength = kEntriesStart + kEntryLength;
7099 7101
(...skipping 4149 matching lines...) Expand 10 before | Expand all | Expand 10 after
11249 } else { 11251 } else {
11250 value &= ~(1 << bit_position); 11252 value &= ~(1 << bit_position);
11251 } 11253 }
11252 return value; 11254 return value;
11253 } 11255 }
11254 }; 11256 };
11255 11257
11256 } } // namespace v8::internal 11258 } } // namespace v8::internal
11257 11259
11258 #endif // V8_OBJECTS_H_ 11260 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698