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

Side by Side Diff: src/objects.cc

Issue 7400023: fix -Wunused-but-set-variable for gcc-4.6 on x64 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: without valgrind changes Created 9 years, 5 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 | « src/jsregexp.cc ('k') | src/parser.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 Handle<Object> trap(v8::internal::GetProperty(handler, trap_name)); 2213 Handle<Object> trap(v8::internal::GetProperty(handler, trap_name));
2214 if (trap->IsUndefined()) { 2214 if (trap->IsUndefined()) {
2215 trap = isolate->derived_set_trap(); 2215 trap = isolate->derived_set_trap();
2216 } 2216 }
2217 2217
2218 // Call trap function. 2218 // Call trap function.
2219 Object** args[] = { 2219 Object** args[] = {
2220 receiver.location(), name.location(), value.location() 2220 receiver.location(), name.location(), value.location()
2221 }; 2221 };
2222 bool has_exception; 2222 bool has_exception;
2223 Handle<Object> result = 2223 Execution::Call(trap, handler, ARRAY_SIZE(args), args, &has_exception);
2224 Execution::Call(trap, handler, ARRAY_SIZE(args), args, &has_exception);
2225 if (has_exception) return Failure::Exception(); 2224 if (has_exception) return Failure::Exception();
2226 2225
2227 return *value; 2226 return *value;
2228 } 2227 }
2229 2228
2230 2229
2231 MUST_USE_RESULT MaybeObject* JSProxy::DeletePropertyWithHandler( 2230 MUST_USE_RESULT MaybeObject* JSProxy::DeletePropertyWithHandler(
2232 String* name_raw, DeleteMode mode) { 2231 String* name_raw, DeleteMode mode) {
2233 Isolate* isolate = GetIsolate(); 2232 Isolate* isolate = GetIsolate();
2234 HandleScope scope(isolate); 2233 HandleScope scope(isolate);
(...skipping 9517 matching lines...) Expand 10 before | Expand all | Expand 10 after
11752 if (break_point_objects()->IsUndefined()) return 0; 11751 if (break_point_objects()->IsUndefined()) return 0;
11753 // Single beak point. 11752 // Single beak point.
11754 if (!break_point_objects()->IsFixedArray()) return 1; 11753 if (!break_point_objects()->IsFixedArray()) return 1;
11755 // Multiple break points. 11754 // Multiple break points.
11756 return FixedArray::cast(break_point_objects())->length(); 11755 return FixedArray::cast(break_point_objects())->length();
11757 } 11756 }
11758 #endif 11757 #endif
11759 11758
11760 11759
11761 } } // namespace v8::internal 11760 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698