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

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: addressed comments 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
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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 CHECK(code()->IsCode()); 487 CHECK(code()->IsCode());
488 CHECK(next_function_link()->IsUndefined() || 488 CHECK(next_function_link()->IsUndefined() ||
489 next_function_link()->IsJSFunction()); 489 next_function_link()->IsJSFunction());
490 } 490 }
491 491
492 492
493 void SharedFunctionInfo::SharedFunctionInfoVerify() { 493 void SharedFunctionInfo::SharedFunctionInfoVerify() {
494 CHECK(IsSharedFunctionInfo()); 494 CHECK(IsSharedFunctionInfo());
495 VerifyObjectField(kNameOffset); 495 VerifyObjectField(kNameOffset);
496 VerifyObjectField(kCodeOffset); 496 VerifyObjectField(kCodeOffset);
497 VerifyObjectField(kOptimizedCodeMapOffset);
497 VerifyObjectField(kScopeInfoOffset); 498 VerifyObjectField(kScopeInfoOffset);
498 VerifyObjectField(kInstanceClassNameOffset); 499 VerifyObjectField(kInstanceClassNameOffset);
499 VerifyObjectField(kFunctionDataOffset); 500 VerifyObjectField(kFunctionDataOffset);
500 VerifyObjectField(kScriptOffset); 501 VerifyObjectField(kScriptOffset);
501 VerifyObjectField(kDebugInfoOffset); 502 VerifyObjectField(kDebugInfoOffset);
502 } 503 }
503 504
504 505
505 void JSGlobalProxy::JSGlobalProxyVerify() { 506 void JSGlobalProxy::JSGlobalProxyVerify() {
506 CHECK(IsJSGlobalProxy()); 507 CHECK(IsJSGlobalProxy());
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 ASSERT(e->IsUndefined()); 932 ASSERT(e->IsUndefined());
932 } 933 }
933 } 934 }
934 } 935 }
935 } 936 }
936 937
937 938
938 #endif // DEBUG 939 #endif // DEBUG
939 940
940 } } // namespace v8::internal 941 } } // namespace v8::internal
OLDNEW
« src/objects.cc ('K') | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698