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

Side by Side Diff: src/api.cc

Issue 6613005: Implementation of strict mode in SetElement. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: SetElement and strict mode. Created 9 years, 9 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/debug.cc » ('j') | src/debug.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2286 matching lines...) Expand 10 before | Expand all | Expand 10 after
2297 bool v8::Object::Set(uint32_t index, v8::Handle<Value> value) { 2297 bool v8::Object::Set(uint32_t index, v8::Handle<Value> value) {
2298 ON_BAILOUT("v8::Object::Set()", return false); 2298 ON_BAILOUT("v8::Object::Set()", return false);
2299 ENTER_V8; 2299 ENTER_V8;
2300 HandleScope scope; 2300 HandleScope scope;
2301 i::Handle<i::JSObject> self = Utils::OpenHandle(this); 2301 i::Handle<i::JSObject> self = Utils::OpenHandle(this);
2302 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value); 2302 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
2303 EXCEPTION_PREAMBLE(); 2303 EXCEPTION_PREAMBLE();
2304 i::Handle<i::Object> obj = i::SetElement( 2304 i::Handle<i::Object> obj = i::SetElement(
2305 self, 2305 self,
2306 index, 2306 index,
2307 value_obj); 2307 value_obj,
2308 i::kNonStrictMode);
2308 has_pending_exception = obj.is_null(); 2309 has_pending_exception = obj.is_null();
2309 EXCEPTION_BAILOUT_CHECK(false); 2310 EXCEPTION_BAILOUT_CHECK(false);
2310 return true; 2311 return true;
2311 } 2312 }
2312 2313
2313 2314
2314 bool v8::Object::ForceSet(v8::Handle<Value> key, 2315 bool v8::Object::ForceSet(v8::Handle<Value> key,
2315 v8::Handle<Value> value, 2316 v8::Handle<Value> value,
2316 v8::PropertyAttribute attribs) { 2317 v8::PropertyAttribute attribs) {
2317 ON_BAILOUT("v8::Object::ForceSet()", return false); 2318 ON_BAILOUT("v8::Object::ForceSet()", return false);
(...skipping 2864 matching lines...) Expand 10 before | Expand all | Expand 10 after
5182 5183
5183 5184
5184 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 5185 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
5185 HandleScopeImplementer* thread_local = 5186 HandleScopeImplementer* thread_local =
5186 reinterpret_cast<HandleScopeImplementer*>(storage); 5187 reinterpret_cast<HandleScopeImplementer*>(storage);
5187 thread_local->IterateThis(v); 5188 thread_local->IterateThis(v);
5188 return storage + ArchiveSpacePerThread(); 5189 return storage + ArchiveSpacePerThread();
5189 } 5190 }
5190 5191
5191 } } // namespace v8::internal 5192 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/debug.cc » ('j') | src/debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698