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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <limits> | 6 #include <limits> |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 3300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3311 return &(kIntrinsicFunctions[i]); | 3311 return &(kIntrinsicFunctions[i]); |
3312 } | 3312 } |
3313 } | 3313 } |
3314 return NULL; | 3314 return NULL; |
3315 } | 3315 } |
3316 | 3316 |
3317 | 3317 |
3318 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 3318 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
3319 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 3319 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
3320 } | 3320 } |
| 3321 |
| 3322 |
| 3323 std::ostream& operator<<(std::ostream& os, Runtime::FunctionId id) { |
| 3324 return os << Runtime::FunctionForId(id)->name; |
3321 } | 3325 } |
3322 } // namespace v8::internal | 3326 |
| 3327 } // namespace internal |
| 3328 } // namespace v8 |
OLD | NEW |