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

Side by Side Diff: src/full-codegen.cc

Issue 8221004: Move declaration of SerializedScopeInfo from variables.h to objects.h (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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 | « src/full-codegen.h ('k') | src/hydrogen.h » ('j') | src/parser.cc » ('J')
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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 if (global_count > 0) { 513 if (global_count > 0) {
514 Handle<FixedArray> array = 514 Handle<FixedArray> array =
515 isolate()->factory()->NewFixedArray(2 * global_count, TENURED); 515 isolate()->factory()->NewFixedArray(2 * global_count, TENURED);
516 for (int j = 0, i = 0; i < length; i++) { 516 for (int j = 0, i = 0; i < length; i++) {
517 Declaration* decl = declarations->at(i); 517 Declaration* decl = declarations->at(i);
518 Variable* var = decl->proxy()->var(); 518 Variable* var = decl->proxy()->var();
519 519
520 if (var->IsUnallocated()) { 520 if (var->IsUnallocated()) {
521 array->set(j++, *(var->name())); 521 array->set(j++, *(var->name()));
522 if (decl->fun() == NULL) { 522 if (decl->fun() == NULL) {
523 if (var->mode() == Variable::CONST) { 523 if (var->mode() == CONST) {
524 // In case this is const property use the hole. 524 // In case this is const property use the hole.
525 array->set_the_hole(j++); 525 array->set_the_hole(j++);
526 } else { 526 } else {
527 array->set_undefined(j++); 527 array->set_undefined(j++);
528 } 528 }
529 } else { 529 } else {
530 Handle<SharedFunctionInfo> function = 530 Handle<SharedFunctionInfo> function =
531 Compiler::BuildFunctionInfo(decl->fun(), script()); 531 Compiler::BuildFunctionInfo(decl->fun(), script());
532 // Check for stack-overflow exception. 532 // Check for stack-overflow exception.
533 if (function.is_null()) { 533 if (function.is_null()) {
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 } 1347 }
1348 1348
1349 return false; 1349 return false;
1350 } 1350 }
1351 1351
1352 1352
1353 #undef __ 1353 #undef __
1354 1354
1355 1355
1356 } } // namespace v8::internal 1356 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/hydrogen.h » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698