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

Side by Side Diff: src/objects.h

Issue 25704002: Correctly handlify CopyContextLocalsToScopeObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/runtime.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 4085 matching lines...) Expand 10 before | Expand all | Expand 10 after
4096 int ParameterIndex(String* name); 4096 int ParameterIndex(String* name);
4097 4097
4098 // Lookup support for serialized scope info. Returns the function context 4098 // Lookup support for serialized scope info. Returns the function context
4099 // slot index if the function name is present and context-allocated (named 4099 // slot index if the function name is present and context-allocated (named
4100 // function expressions, only), otherwise returns a value < 0. The name 4100 // function expressions, only), otherwise returns a value < 0. The name
4101 // must be an internalized string. 4101 // must be an internalized string.
4102 int FunctionContextSlotIndex(String* name, VariableMode* mode); 4102 int FunctionContextSlotIndex(String* name, VariableMode* mode);
4103 4103
4104 4104
4105 // Copies all the context locals into an object used to materialize a scope. 4105 // Copies all the context locals into an object used to materialize a scope.
4106 bool CopyContextLocalsToScopeObject(Isolate* isolate, 4106 static bool CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info,
4107 Handle<Context> context, 4107 Handle<Context> context,
4108 Handle<JSObject> scope_object); 4108 Handle<JSObject> scope_object);
4109 4109
4110 4110
4111 static Handle<ScopeInfo> Create(Scope* scope, Zone* zone); 4111 static Handle<ScopeInfo> Create(Scope* scope, Zone* zone);
4112 4112
4113 // Serializes empty scope info. 4113 // Serializes empty scope info.
4114 static ScopeInfo* Empty(Isolate* isolate); 4114 static ScopeInfo* Empty(Isolate* isolate);
4115 4115
4116 #ifdef DEBUG 4116 #ifdef DEBUG
4117 void Print(); 4117 void Print();
4118 #endif 4118 #endif
(...skipping 6114 matching lines...) Expand 10 before | Expand all | Expand 10 after
10233 } else { 10233 } else {
10234 value &= ~(1 << bit_position); 10234 value &= ~(1 << bit_position);
10235 } 10235 }
10236 return value; 10236 return value;
10237 } 10237 }
10238 }; 10238 };
10239 10239
10240 } } // namespace v8::internal 10240 } } // namespace v8::internal
10241 10241
10242 #endif // V8_OBJECTS_H_ 10242 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698