Chromium Code Reviews| Index: src/runtime/runtime-array.cc |
| diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
| index 90a1e2c1ef3266405709491b9d61dec0bb808242..87d4f263ef42b135ee66a9914d8be384d4c389af 100644 |
| --- a/src/runtime/runtime-array.cc |
| +++ b/src/runtime/runtime-array.cc |
| @@ -1338,15 +1338,18 @@ RUNTIME_FUNCTION(Runtime_HasCachedArrayIndex) { |
| RUNTIME_FUNCTION(Runtime_GetCachedArrayIndex) { |
| - SealHandleScope shs(isolate); |
| - DCHECK(args.length() == 1); |
| - return isolate->heap()->undefined_value(); |
| + // This can never be reached, because Runtime_GetCachedArrayIndex always |
|
Michael Starzinger
2015/03/11 11:29:55
nit: s/Runtime_GetCachedArrayIndex/Runtime_HasCach
Sven Panne
2015/03/11 12:40:00
Done.
|
| + // returns false. |
| + UNIMPLEMENTED(); |
| + return nullptr; |
| } |
| RUNTIME_FUNCTION(Runtime_FastOneByteArrayJoin) { |
| SealHandleScope shs(isolate); |
| DCHECK(args.length() == 2); |
| + // Returning undefined means that this fast path fails and one has to resort |
| + // to a slow path. |
| return isolate->heap()->undefined_value(); |
| } |
| } |