| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008 The Native Client Authors. All rights reserved. | 2 * Copyright 2008 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "native_client/src/include/checked_cast.h" | 10 #include "native_client/src/include/checked_cast.h" |
| 11 #include "native_client/src/shared/platform/nacl_exit.h" | 11 #include "native_client/src/shared/platform/nacl_exit.h" |
| 12 #include "native_client/src/shared/platform/nacl_log.h" | 12 #include "native_client/src/shared/platform/nacl_log.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 void MethodMap::AddMethod(uintptr_t method_id, MethodInfo *info) { | 201 void MethodMap::AddMethod(uintptr_t method_id, MethodInfo *info) { |
| 202 if (method_map_.find(method_id) != method_map_.end()) { | 202 if (method_map_.find(method_id) != method_map_.end()) { |
| 203 // the method already exists | 203 // the method already exists |
| 204 NaClAbort(); | 204 NaClAbort(); |
| 205 } | 205 } |
| 206 method_map_[method_id] = info; | 206 method_map_[method_id] = info; |
| 207 method_map_keys_.push_back(method_id); | 207 method_map_keys_.push_back(method_id); |
| 208 } | 208 } |
| 209 | 209 |
| 210 } // namespace plugin | 210 } // namespace plugin |
| OLD | NEW |