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

Side by Side Diff: src/scopeinfo.cc

Issue 12314152: Miscellaneous profile-driven Isolate plumbing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/runtime.cc ('k') | src/scopes.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 ASSERT(index == scope_info->length()); 142 ASSERT(index == scope_info->length());
143 ASSERT(scope->num_parameters() == scope_info->ParameterCount()); 143 ASSERT(scope->num_parameters() == scope_info->ParameterCount());
144 ASSERT(scope->num_stack_slots() == scope_info->StackSlotCount()); 144 ASSERT(scope->num_stack_slots() == scope_info->StackSlotCount());
145 ASSERT(scope->num_heap_slots() == scope_info->ContextLength() || 145 ASSERT(scope->num_heap_slots() == scope_info->ContextLength() ||
146 (scope->num_heap_slots() == kVariablePartIndex && 146 (scope->num_heap_slots() == kVariablePartIndex &&
147 scope_info->ContextLength() == 0)); 147 scope_info->ContextLength() == 0));
148 return scope_info; 148 return scope_info;
149 } 149 }
150 150
151 151
152 ScopeInfo* ScopeInfo::Empty() { 152 ScopeInfo* ScopeInfo::Empty(Isolate* isolate) {
153 return reinterpret_cast<ScopeInfo*>(HEAP->empty_fixed_array()); 153 return reinterpret_cast<ScopeInfo*>(isolate->heap()->empty_fixed_array());
154 } 154 }
155 155
156 156
157 ScopeType ScopeInfo::Type() { 157 ScopeType ScopeInfo::Type() {
158 ASSERT(length() > 0); 158 ASSERT(length() > 0);
159 return TypeField::decode(Flags()); 159 return TypeField::decode(Flags());
160 } 160 }
161 161
162 162
163 bool ScopeInfo::CallsEval() { 163 bool ScopeInfo::CallsEval() {
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 } else { 552 } else {
553 ASSERT(var->index() >= 0); 553 ASSERT(var->index() >= 0);
554 info->set_index(i, var->index()); 554 info->set_index(i, var->index());
555 } 555 }
556 } 556 }
557 ASSERT(i == info->length()); 557 ASSERT(i == info->length());
558 return info; 558 return info;
559 } 559 }
560 560
561 } } // namespace v8::internal 561 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698