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

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

Issue 10103035: Share optimized code for closures. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 CHECK(code()->IsCode()); 495 CHECK(code()->IsCode());
496 CHECK(next_function_link()->IsUndefined() || 496 CHECK(next_function_link()->IsUndefined() ||
497 next_function_link()->IsJSFunction()); 497 next_function_link()->IsJSFunction());
498 } 498 }
499 499
500 500
501 void SharedFunctionInfo::SharedFunctionInfoVerify() { 501 void SharedFunctionInfo::SharedFunctionInfoVerify() {
502 CHECK(IsSharedFunctionInfo()); 502 CHECK(IsSharedFunctionInfo());
503 VerifyObjectField(kNameOffset); 503 VerifyObjectField(kNameOffset);
504 VerifyObjectField(kCodeOffset); 504 VerifyObjectField(kCodeOffset);
505 VerifyObjectField(kOptimizedCodeMapOffset);
505 VerifyObjectField(kScopeInfoOffset); 506 VerifyObjectField(kScopeInfoOffset);
506 VerifyObjectField(kInstanceClassNameOffset); 507 VerifyObjectField(kInstanceClassNameOffset);
507 VerifyObjectField(kFunctionDataOffset); 508 VerifyObjectField(kFunctionDataOffset);
508 VerifyObjectField(kScriptOffset); 509 VerifyObjectField(kScriptOffset);
509 VerifyObjectField(kDebugInfoOffset); 510 VerifyObjectField(kDebugInfoOffset);
510 } 511 }
511 512
512 513
513 void JSGlobalProxy::JSGlobalProxyVerify() { 514 void JSGlobalProxy::JSGlobalProxyVerify() {
514 CHECK(IsJSGlobalProxy()); 515 CHECK(IsJSGlobalProxy());
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 FixedArray* proto_transitions = prototype_transitions(); 1010 FixedArray* proto_transitions = prototype_transitions();
1010 MemsetPointer(proto_transitions->data_start(), 1011 MemsetPointer(proto_transitions->data_start(),
1011 GetHeap()->the_hole_value(), 1012 GetHeap()->the_hole_value(),
1012 proto_transitions->length()); 1013 proto_transitions->length());
1013 } 1014 }
1014 1015
1015 1016
1016 #endif // DEBUG 1017 #endif // DEBUG
1017 1018
1018 } } // namespace v8::internal 1019 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698