Chromium Code Reviews| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 if (IsStub()) { |
| 129 return 0; | 129 return -1; |
|
Hannes Payer (out of office)
2013/04/18 11:14:39
Do we need that special case?
mvstanton
2013/04/18 13:39:26
Indeed no, and I protected the region with ASSERT(
| |
| 130 } else { | 130 } else { |
| 131 return scope()->num_parameters(); | 131 return scope()->num_parameters(); |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 | 134 |
| 135 | 135 |
| 136 int CompilationInfo::num_heap_slots() const { | 136 int CompilationInfo::num_heap_slots() const { |
| 137 if (IsStub()) { | 137 if (IsStub()) { |
| 138 return 0; | 138 return 0; |
| 139 } else { | 139 } else { |
| (...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1159 } | 1159 } |
| 1160 } | 1160 } |
| 1161 | 1161 |
| 1162 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 1162 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
| 1163 Handle<Script>(info->script()), | 1163 Handle<Script>(info->script()), |
| 1164 Handle<Code>(info->code()), | 1164 Handle<Code>(info->code()), |
| 1165 info)); | 1165 info)); |
| 1166 } | 1166 } |
| 1167 | 1167 |
| 1168 } } // namespace v8::internal | 1168 } } // namespace v8::internal |
| OLD | NEW |