| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "src/objects.h" | 5 #include "src/objects.h" | 
| 6 | 6 | 
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" | 
| 8 #include "src/disasm.h" | 8 #include "src/disasm.h" | 
| 9 #include "src/disassembler.h" | 9 #include "src/disassembler.h" | 
| 10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" | 
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 569         next_function_link()->IsJSFunction()); | 569         next_function_link()->IsJSFunction()); | 
| 570   CHECK(map()->is_callable()); | 570   CHECK(map()->is_callable()); | 
| 571 } | 571 } | 
| 572 | 572 | 
| 573 | 573 | 
| 574 void SharedFunctionInfo::SharedFunctionInfoVerify() { | 574 void SharedFunctionInfo::SharedFunctionInfoVerify() { | 
| 575   CHECK(IsSharedFunctionInfo()); | 575   CHECK(IsSharedFunctionInfo()); | 
| 576   VerifyObjectField(kNameOffset); | 576   VerifyObjectField(kNameOffset); | 
| 577   VerifyObjectField(kCodeOffset); | 577   VerifyObjectField(kCodeOffset); | 
| 578   VerifyObjectField(kOptimizedCodeMapOffset); | 578   VerifyObjectField(kOptimizedCodeMapOffset); | 
| 579   VerifyObjectField(kFeedbackVectorOffset); | 579   VerifyObjectField(kFeedbackMetadataOffset); | 
| 580   VerifyObjectField(kScopeInfoOffset); | 580   VerifyObjectField(kScopeInfoOffset); | 
| 581   VerifyObjectField(kInstanceClassNameOffset); | 581   VerifyObjectField(kInstanceClassNameOffset); | 
| 582   CHECK(function_data()->IsUndefined() || IsApiFunction() || | 582   CHECK(function_data()->IsUndefined() || IsApiFunction() || | 
| 583         HasBuiltinFunctionId() || HasBytecodeArray()); | 583         HasBuiltinFunctionId() || HasBytecodeArray()); | 
| 584   VerifyObjectField(kFunctionDataOffset); | 584   VerifyObjectField(kFunctionDataOffset); | 
| 585   VerifyObjectField(kScriptOffset); | 585   VerifyObjectField(kScriptOffset); | 
| 586   VerifyObjectField(kDebugInfoOffset); | 586   VerifyObjectField(kDebugInfoOffset); | 
| 587 } | 587 } | 
| 588 | 588 | 
| 589 | 589 | 
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1326 | 1326 | 
| 1327   // Both are done at the same time. | 1327   // Both are done at the same time. | 
| 1328   CHECK_EQ(new_it.done(), old_it.done()); | 1328   CHECK_EQ(new_it.done(), old_it.done()); | 
| 1329 } | 1329 } | 
| 1330 | 1330 | 
| 1331 | 1331 | 
| 1332 #endif  // DEBUG | 1332 #endif  // DEBUG | 
| 1333 | 1333 | 
| 1334 }  // namespace internal | 1334 }  // namespace internal | 
| 1335 }  // namespace v8 | 1335 }  // namespace v8 | 
| OLD | NEW | 
|---|