| OLD | NEW |
| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 set_bailout_reason("unknown"); | 118 set_bailout_reason("unknown"); |
| 119 } | 119 } |
| 120 | 120 |
| 121 | 121 |
| 122 CompilationInfo::~CompilationInfo() { | 122 CompilationInfo::~CompilationInfo() { |
| 123 delete deferred_handles_; | 123 delete deferred_handles_; |
| 124 } | 124 } |
| 125 | 125 |
| 126 | 126 |
| 127 int CompilationInfo::num_parameters() const { | 127 int CompilationInfo::num_parameters() const { |
| 128 if (IsStub()) { | 128 ASSERT(!IsStub()); |
| 129 return 0; | 129 return scope()->num_parameters(); |
| 130 } else { | |
| 131 return scope()->num_parameters(); | |
| 132 } | |
| 133 } | 130 } |
| 134 | 131 |
| 135 | 132 |
| 136 int CompilationInfo::num_heap_slots() const { | 133 int CompilationInfo::num_heap_slots() const { |
| 137 if (IsStub()) { | 134 if (IsStub()) { |
| 138 return 0; | 135 return 0; |
| 139 } else { | 136 } else { |
| 140 return scope()->num_heap_slots(); | 137 return scope()->num_heap_slots(); |
| 141 } | 138 } |
| 142 } | 139 } |
| (...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 } | 1162 } |
| 1166 } | 1163 } |
| 1167 | 1164 |
| 1168 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 1165 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
| 1169 Handle<Script>(info->script()), | 1166 Handle<Script>(info->script()), |
| 1170 Handle<Code>(info->code()), | 1167 Handle<Code>(info->code()), |
| 1171 info)); | 1168 info)); |
| 1172 } | 1169 } |
| 1173 | 1170 |
| 1174 } } // namespace v8::internal | 1171 } } // namespace v8::internal |
| OLD | NEW |