OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 | 36 |
37 #ifdef DEBUG | 37 #ifdef DEBUG |
38 void BitVector::Print() { | 38 void BitVector::Print() { |
39 bool first = true; | 39 bool first = true; |
40 PrintF("{"); | 40 PrintF("{"); |
41 for (int i = 0; i < length(); i++) { | 41 for (int i = 0; i < length(); i++) { |
42 if (Contains(i)) { | 42 if (Contains(i)) { |
43 if (!first) PrintF(","); | 43 if (!first) PrintF(","); |
44 first = false; | 44 first = false; |
45 PrintF("%d", i); | 45 PrintF("%d"); |
46 } | 46 } |
47 } | 47 } |
48 PrintF("}"); | 48 PrintF("}"); |
49 } | 49 } |
50 #endif | 50 #endif |
51 | 51 |
52 | 52 |
53 bool AssignedVariablesAnalyzer::Analyze() { | 53 bool AssignedVariablesAnalyzer::Analyze() { |
54 Scope* scope = fun_->scope(); | 54 Scope* scope = fun_->scope(); |
55 int variables = scope->num_parameters() + scope->num_stack_slots(); | 55 int variables = scope->num_parameters() + scope->num_stack_slots(); |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 ASSERT(av_.IsEmpty()); | 515 ASSERT(av_.IsEmpty()); |
516 } | 516 } |
517 | 517 |
518 | 518 |
519 void AssignedVariablesAnalyzer::VisitDeclaration(Declaration* decl) { | 519 void AssignedVariablesAnalyzer::VisitDeclaration(Declaration* decl) { |
520 UNREACHABLE(); | 520 UNREACHABLE(); |
521 } | 521 } |
522 | 522 |
523 | 523 |
524 } } // namespace v8::internal | 524 } } // namespace v8::internal |
OLD | NEW |