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

Side by Side Diff: src/objects-debug.cc

Issue 14158006: Capture receiver in generator object (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Rebase on master, fix for ARM Created 7 years, 8 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/objects.h ('k') | src/objects-inl.h » ('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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 } 409 }
410 } 410 }
411 411
412 412
413 void JSGeneratorObject::JSGeneratorObjectVerify() { 413 void JSGeneratorObject::JSGeneratorObjectVerify() {
414 // In an expression like "new g()", there can be a point where a generator 414 // In an expression like "new g()", there can be a point where a generator
415 // object is allocated but its fields are all undefined, as it hasn't yet been 415 // object is allocated but its fields are all undefined, as it hasn't yet been
416 // initialized by the generator. Hence these weak checks. 416 // initialized by the generator. Hence these weak checks.
417 VerifyObjectField(kFunctionOffset); 417 VerifyObjectField(kFunctionOffset);
418 VerifyObjectField(kContextOffset); 418 VerifyObjectField(kContextOffset);
419 VerifyObjectField(kReceiverOffset);
419 VerifyObjectField(kOperandStackOffset); 420 VerifyObjectField(kOperandStackOffset);
420 VerifyObjectField(kContinuationOffset); 421 VerifyObjectField(kContinuationOffset);
421 } 422 }
422 423
423 424
424 void JSModule::JSModuleVerify() { 425 void JSModule::JSModuleVerify() {
425 VerifyObjectField(kContextOffset); 426 VerifyObjectField(kContextOffset);
426 VerifyObjectField(kScopeInfoOffset); 427 VerifyObjectField(kScopeInfoOffset);
427 CHECK(context()->IsUndefined() || 428 CHECK(context()->IsUndefined() ||
428 Context::cast(context())->IsModuleContext()); 429 Context::cast(context())->IsModuleContext());
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 for (int i = 0; i < number_of_transitions(); ++i) { 1111 for (int i = 0; i < number_of_transitions(); ++i) {
1111 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1112 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1112 } 1113 }
1113 return true; 1114 return true;
1114 } 1115 }
1115 1116
1116 1117
1117 #endif // DEBUG 1118 #endif // DEBUG
1118 1119
1119 } } // namespace v8::internal 1120 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698