Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: src/runtime.cc

Issue 439723005: Version 3.26.31.15 (merged r22494) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.26
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "v8.h" 8 #include "v8.h"
9 9
10 #include "accessors.h" 10 #include "accessors.h"
(...skipping 10033 matching lines...) Expand 10 before | Expand all | Expand 10 after
10044 void increase_index_offset(uint32_t delta) { 10044 void increase_index_offset(uint32_t delta) {
10045 if (JSObject::kMaxElementCount - index_offset_ < delta) { 10045 if (JSObject::kMaxElementCount - index_offset_ < delta) {
10046 index_offset_ = JSObject::kMaxElementCount; 10046 index_offset_ = JSObject::kMaxElementCount;
10047 } else { 10047 } else {
10048 index_offset_ += delta; 10048 index_offset_ += delta;
10049 } 10049 }
10050 // If the initial length estimate was off (see special case in visit()), 10050 // If the initial length estimate was off (see special case in visit()),
10051 // but the array blowing the limit didn't contain elements beyond the 10051 // but the array blowing the limit didn't contain elements beyond the
10052 // provided-for index range, go to dictionary mode now. 10052 // provided-for index range, go to dictionary mode now.
10053 if (fast_elements_ && 10053 if (fast_elements_ &&
10054 index_offset_ >= static_cast<uint32_t>( 10054 index_offset_ >
10055 FixedArrayBase::cast(*storage_)->length())) { 10055 static_cast<uint32_t>(FixedArrayBase::cast(*storage_)->length())) {
10056 SetDictionaryMode(); 10056 SetDictionaryMode();
10057 } 10057 }
10058 } 10058 }
10059 10059
10060 bool exceeds_array_limit() { 10060 bool exceeds_array_limit() {
10061 return exceeds_array_limit_; 10061 return exceeds_array_limit_;
10062 } 10062 }
10063 10063
10064 Handle<JSArray> ToArray() { 10064 Handle<JSArray> ToArray() {
10065 Handle<JSArray> array = isolate_->factory()->NewJSArray(0); 10065 Handle<JSArray> array = isolate_->factory()->NewJSArray(0);
(...skipping 5205 matching lines...) Expand 10 before | Expand all | Expand 10 after
15271 } 15271 }
15272 return NULL; 15272 return NULL;
15273 } 15273 }
15274 15274
15275 15275
15276 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15276 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15277 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15277 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15278 } 15278 }
15279 15279
15280 } } // namespace v8::internal 15280 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698