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

Issue 10383189: Replace long sequences of popq with a Drop(int) macro instruction. (Closed)

Created:
8 years, 7 months ago by Florian Schneider
Modified:
8 years, 7 months ago
Reviewers:
regis, srdjan, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Replace long sequences of popq with a Drop(int) macro instruction. This is for now only done on x64. Committed: https://code.google.com/p/dart/source/detail?r=7668

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -12 lines) Patch
M vm/assembler_x64.h View 1 1 chunk +2 lines, -0 lines 2 comments Download
M vm/assembler_x64.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M vm/flow_graph_compiler_x64.cc View 7 chunks +9 lines, -12 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Florian Schneider
8 years, 7 months ago (2012-05-15 17:25:23 UTC) #1
srdjan
LGTM with comments https://chromiumcodereview.appspot.com/10383189/diff/1/vm/assembler_x64.cc File vm/assembler_x64.cc (right): https://chromiumcodereview.appspot.com/10383189/diff/1/vm/assembler_x64.cc#newcode1271 vm/assembler_x64.cc:1271: addq(RSP, Immediate(stack_elements * kWordSize)); When is ...
8 years, 7 months ago (2012-05-15 19:52:27 UTC) #2
Florian Schneider
https://chromiumcodereview.appspot.com/10383189/diff/1/vm/assembler_x64.cc File vm/assembler_x64.cc (right): https://chromiumcodereview.appspot.com/10383189/diff/1/vm/assembler_x64.cc#newcode1271 vm/assembler_x64.cc:1271: addq(RSP, Immediate(stack_elements * kWordSize)); On 2012/05/15 19:52:27, srdjan wrote: ...
8 years, 7 months ago (2012-05-15 21:40:56 UTC) #3
siva
https://chromiumcodereview.appspot.com/10383189/diff/6001/vm/assembler_x64.h File vm/assembler_x64.h (right): https://chromiumcodereview.appspot.com/10383189/diff/6001/vm/assembler_x64.h#newcode492 vm/assembler_x64.h:492: void Drop(intptr_t stack_elements); Why call it Drop and not ...
8 years, 7 months ago (2012-05-15 21:58:59 UTC) #4
regis
https://chromiumcodereview.appspot.com/10383189/diff/6001/vm/assembler_x64.h File vm/assembler_x64.h (right): https://chromiumcodereview.appspot.com/10383189/diff/6001/vm/assembler_x64.h#newcode492 vm/assembler_x64.h:492: void Drop(intptr_t stack_elements); On 2012/05/15 21:58:59, asiva wrote: > ...
8 years, 7 months ago (2012-05-15 22:12:45 UTC) #5
Florian Schneider
8 years, 7 months ago (2012-05-15 22:36:28 UTC) #6
On 2012/05/15 22:12:45, regis wrote:
> https://chromiumcodereview.appspot.com/10383189/diff/6001/vm/assembler_x64.h
> File vm/assembler_x64.h (right):
> 
>
https://chromiumcodereview.appspot.com/10383189/diff/6001/vm/assembler_x64.h#...
> vm/assembler_x64.h:492: void Drop(intptr_t stack_elements);
> On 2012/05/15 21:58:59, asiva wrote:
> > Why call it Drop and not PopElements which seems more readable?
> 
> I agree with Siva. Also, stack_elements does not evoke a count or number.
> PopqN(int n), PopWords(int word_count), PopElements(int num_elements), etc...
> would all be preferable.
> I am not sure an intptr_t is necessary either.
> Just giving a hard time to Florian on his first commit :-)

I'm fine with Drop(int n) which still concise and different enough from Pop to
indicate that it does something else.

Powered by Google App Engine
This is Rietveld 408576698