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

Side by Side Diff: src/runtime.cc

Issue 439263002: Version 3.27.34.10 (merged r22494) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.27
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 "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 10041 matching lines...) Expand 10 before | Expand all | Expand 10 after
10052 void increase_index_offset(uint32_t delta) { 10052 void increase_index_offset(uint32_t delta) {
10053 if (JSObject::kMaxElementCount - index_offset_ < delta) { 10053 if (JSObject::kMaxElementCount - index_offset_ < delta) {
10054 index_offset_ = JSObject::kMaxElementCount; 10054 index_offset_ = JSObject::kMaxElementCount;
10055 } else { 10055 } else {
10056 index_offset_ += delta; 10056 index_offset_ += delta;
10057 } 10057 }
10058 // If the initial length estimate was off (see special case in visit()), 10058 // If the initial length estimate was off (see special case in visit()),
10059 // but the array blowing the limit didn't contain elements beyond the 10059 // but the array blowing the limit didn't contain elements beyond the
10060 // provided-for index range, go to dictionary mode now. 10060 // provided-for index range, go to dictionary mode now.
10061 if (fast_elements_ && 10061 if (fast_elements_ &&
10062 index_offset_ >= static_cast<uint32_t>( 10062 index_offset_ >
10063 FixedArrayBase::cast(*storage_)->length())) { 10063 static_cast<uint32_t>(FixedArrayBase::cast(*storage_)->length())) {
10064 SetDictionaryMode(); 10064 SetDictionaryMode();
10065 } 10065 }
10066 } 10066 }
10067 10067
10068 bool exceeds_array_limit() { 10068 bool exceeds_array_limit() {
10069 return exceeds_array_limit_; 10069 return exceeds_array_limit_;
10070 } 10070 }
10071 10071
10072 Handle<JSArray> ToArray() { 10072 Handle<JSArray> ToArray() {
10073 Handle<JSArray> array = isolate_->factory()->NewJSArray(0); 10073 Handle<JSArray> array = isolate_->factory()->NewJSArray(0);
(...skipping 5147 matching lines...) Expand 10 before | Expand all | Expand 10 after
15221 } 15221 }
15222 return NULL; 15222 return NULL;
15223 } 15223 }
15224 15224
15225 15225
15226 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15226 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15227 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15227 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15228 } 15228 }
15229 15229
15230 } } // namespace v8::internal 15230 } } // 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