OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 15 matching lines...) Expand all Loading... |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #include "v8.h" | 28 #include "v8.h" |
29 | 29 |
30 namespace v8 { | 30 namespace v8 { |
31 namespace internal { | 31 namespace internal { |
32 | 32 |
33 | 33 |
34 #ifdef DEBUG | 34 #ifdef DEBUG |
35 void LookupResult::Print() { | 35 void LookupResult::Print() { |
36 if (!IsValid()) { | 36 if (!IsFound()) { |
37 PrintF("Not Found\n"); | 37 PrintF("Not Found\n"); |
38 return; | 38 return; |
39 } | 39 } |
40 | 40 |
41 PrintF("LookupResult:\n"); | 41 PrintF("LookupResult:\n"); |
42 PrintF(" -cacheable = %s\n", IsCacheable() ? "true" : "false"); | 42 PrintF(" -cacheable = %s\n", IsCacheable() ? "true" : "false"); |
43 PrintF(" -attributes = %x\n", GetAttributes()); | 43 PrintF(" -attributes = %x\n", GetAttributes()); |
44 switch (type()) { | 44 switch (type()) { |
45 case NORMAL: | 45 case NORMAL: |
46 PrintF(" -type = normal\n"); | 46 PrintF(" -type = normal\n"); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 PrintF(" @ "); | 87 PrintF(" @ "); |
88 GetValue()->ShortPrint(); | 88 GetValue()->ShortPrint(); |
89 PrintF(" %d\n", GetDetails().index()); | 89 PrintF(" %d\n", GetDetails().index()); |
90 } | 90 } |
91 | 91 |
92 | 92 |
93 #endif | 93 #endif |
94 | 94 |
95 | 95 |
96 } } // namespace v8::internal | 96 } } // namespace v8::internal |
OLD | NEW |